2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

14_CUL_MAX.pm: Handle TimeInformation without payload gracefully

git-svn-id: https://svn.fhem.de/fhem/trunk@12439 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2016-10-26 20:24:44 +00:00
parent 4f06689a90
commit 269aad9afe

View File

@ -322,7 +322,7 @@ CUL_MAX_Parse($$)
#This is a request for TimeInformation send to us
Log3 $hash, 5, "Got request for TimeInformation, sending it";
CUL_MAX_SendTimeInformation($shash, $src);
} else {
} elsif(length($payload) > 0) {
my ($f1,$f2,$f3,$f4,$f5) = unpack("CCCCC",pack("H*",$payload));
#For all fields but the month I'm quite sure
my $year = $f1 + 2000;