2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

36_WMBUS: better error message if received data is too short

git-svn-id: https://svn.fhem.de/fhem/trunk@15410 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
kaihs 2017-11-08 19:27:50 +00:00
parent 4510ad8423
commit 0b04bcb075

View File

@ -266,6 +266,9 @@ WMBUS_Parse($$)
} else {
# error
Log3 $name, 2, "WMBUS Error during LinkLayer parse:" . $mb->{errormsg};
if ($mb->{errorcode} == WMBus::ERR_MSG_TOO_SHORT && $hash->{MessageEncoding} eq 'CUL') {
Log3 $name, 2, "Please make sure that TTY_BUFSIZE in culfw is at least two times the message length + 1";
}
return undef;
}
} else {