From 2a848a56d9954785d0b12bb08abdfb98fdd3cb7b Mon Sep 17 00:00:00 2001 From: HCS <> Date: Sat, 29 Apr 2017 05:27:02 +0000 Subject: [PATCH] 36_EleroDrive.pm: delete did not work git-svn-id: https://svn.fhem.de/fhem/trunk@14131 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/36_EleroDrive.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/36_EleroDrive.pm b/fhem/FHEM/36_EleroDrive.pm index 4c4634cb2..da128f9cb 100644 --- a/fhem/FHEM/36_EleroDrive.pm +++ b/fhem/FHEM/36_EleroDrive.pm @@ -68,6 +68,8 @@ sub EleroDrive_Undef($$) { RemoveInternalTimer($hash); delete( $modules{EleroDrive}{defptr}{$channel} ); + + return undef; } @@ -132,7 +134,7 @@ sub EleroDrive_ToFixPosition($$) { my $byteMsg = $head.$msgLength.$msgCmd.$firstChannels.$secondChannels.$payload.$checksum; - ###debugLog($name, "EleroDrive_Set->IOWrite: byteMsg=$byteMsg"); + ###debugLog("EleroDrive_Set->IOWrite: byteMsg=$byteMsg"); IOWrite($hash, "send", $byteMsg); } @@ -145,7 +147,7 @@ sub EleroDrive_ToAnyPosition($$) { my ( $hash, $position) = @_; my $name = $hash->{NAME}; - ###debugLog($name, "ToAnyPosition: $position"); + ###debugLog("ToAnyPosition: $position"); } #======================================================================================= @@ -277,7 +279,7 @@ sub EleroDrive_Parse($$) { my $rname = $rhash->{NAME}; if($modules{EleroDrive}{defptr}{$channel}) { - ###debugLog($name, "$rname -> parsed $msg for channel $channel: $newstate"); + ###debugLog("$rname -> parsed $msg for channel $channel: $newstate"); readingsBeginUpdate($rhash); readingsBulkUpdate($rhash, "state", $newstate); @@ -292,7 +294,7 @@ sub EleroDrive_Parse($$) { return @list; } else { - ###debugLog($name, "$name -> AUTOCREATE " . $hash->{IODev}->{NAME}); + ###debugLog("$name -> AUTOCREATE " . $hash->{IODev}->{NAME}); return "UNDEFINED EleroDrive_$channel EleroDrive $channel"; } }