From 8308630e0d17f63c43b6c406e8f807842143a566 Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Tue, 15 Oct 2013 19:22:25 +0000 Subject: [PATCH] # Windows OS support git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4050 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/00_TCM.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/FHEM/00_TCM.pm b/FHEM/00_TCM.pm index 59207ef70..9ca4cb5a0 100755 --- a/FHEM/00_TCM.pm +++ b/FHEM/00_TCM.pm @@ -1,8 +1,6 @@ ############################################## # $Id$ -package main; - # by r.koenig at koeniglich.de # # This modules handles the communication with a TCM120 or TCM310 EnOcean @@ -18,9 +16,16 @@ package main; # Check Stick WriteRadio # Check Stick RSS +package main; + use strict; use warnings; use Time::HiRes qw(gettimeofday); +if( $^O =~ /Win/ ) { + require Win32::SerialPort; +} else { + require Device::SerialPort; +} sub TCM_Read($); sub TCM_ReadAnswer($$); @@ -828,6 +833,7 @@ TCM_Undef($$)