From 90dbeaa549ec4d9803e0e4ec56f7075cf81a53b9 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Wed, 26 Oct 2016 20:24:44 +0000 Subject: [PATCH] 14_CUL_MAX.pm: Handle TimeInformation without payload gracefully git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12439 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/14_CUL_MAX.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/14_CUL_MAX.pm b/FHEM/14_CUL_MAX.pm index f4ae93363..843490066 100644 --- a/FHEM/14_CUL_MAX.pm +++ b/FHEM/14_CUL_MAX.pm @@ -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;