mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 22:09:21 +00:00
70_CanOverEthernet: sendDataDigital crash fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@20432 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
aae4691778
commit
37ddbf4dcf
@ -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
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user