diff --git a/fhem/CHANGED b/fhem/CHANGED index 97639290b..a7ed6af74 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_CanOverEthernet: sendDataDigital crash fixed - bugfix: 70_CanOverEthernet: module crashed when UDP port was occupied - feature: 98_weekprofile: add reading topics - a list of topic names - change: 57_Calendar: new attribute, cutoffLaterThan; events without diff --git a/fhem/FHEM/70_CanOverEthernet.pm b/fhem/FHEM/70_CanOverEthernet.pm index f85af9c0b..e2436feb5 100644 --- a/fhem/FHEM/70_CanOverEthernet.pm +++ b/fhem/FHEM/70_CanOverEthernet.pm @@ -265,8 +265,8 @@ sub CanOverEthernet_sendDataDigital { my $digiVals = ''; for (my $idx=0; $idx < 32; $idx++) { - if(defined($values[0][$idx])) { - $digiVals = $digiVals . ($values[0][$idx] == '1' ? "\001" : "\000"); + if(defined($values[$idx])) { + $digiVals = $digiVals . ($values[$idx] == '1' ? "\001" : "\000"); } else { $digiVals = $digiVals . "\000"; }