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:
parent
4f06689a90
commit
269aad9afe
@ -322,7 +322,7 @@ CUL_MAX_Parse($$)
|
|||||||
#This is a request for TimeInformation send to us
|
#This is a request for TimeInformation send to us
|
||||||
Log3 $hash, 5, "Got request for TimeInformation, sending it";
|
Log3 $hash, 5, "Got request for TimeInformation, sending it";
|
||||||
CUL_MAX_SendTimeInformation($shash, $src);
|
CUL_MAX_SendTimeInformation($shash, $src);
|
||||||
} else {
|
} elsif(length($payload) > 0) {
|
||||||
my ($f1,$f2,$f3,$f4,$f5) = unpack("CCCCC",pack("H*",$payload));
|
my ($f1,$f2,$f3,$f4,$f5) = unpack("CCCCC",pack("H*",$payload));
|
||||||
#For all fields but the month I'm quite sure
|
#For all fields but the month I'm quite sure
|
||||||
my $year = $f1 + 2000;
|
my $year = $f1 + 2000;
|
||||||
|
Loading…
Reference in New Issue
Block a user