From 6c1722efc62362d5a3d25fd1711bf419c49d611c Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 9 Mar 2014 12:31:07 +0000 Subject: [PATCH] fhem.pl: fixing IODev issues git-svn-id: https://svn.fhem.de/fhem/trunk@5175 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 91d600345..48703a945 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -444,8 +444,9 @@ $attr{global}{motd} = "$sc_text\n\n" $init_done = 1; foreach my $d (keys %defs) { - if(defined($defs{$d}{IODev}) && $defs{$d}{IODev} == 0) { + if($defs{$d}{IODevMissing}) { Log 3, "No I/O device found for $defs{$d}{NAME}"; + delete $defs{$d}{IODevMissing}; } } DoTrigger("global", "INITIALIZED", 1); @@ -1564,12 +1565,14 @@ AssignIoPort($;$) } } if($hash->{IODev}) { - $attr{$hash->{NAME}}{IODev} = $hash->{IODev}{NAME}; + $attr{$hash->{NAME}}{IODev} = $hash->{IODev}{NAME} + if($hash->{TYPE} ne "CUL_WS"); # See CUL_WS_Attr() for details + } else { if($init_done) { Log 3, "No I/O device found for $hash->{NAME}" } else { - $hash->{IODev} = 0; + $hash->{IODevMissing} = 1; } } return undef;