89_VCONTROL: TIMERCONV corrected for 00:00 and 24:00

git-svn-id: https://svn.fhem.de/fhem/trunk@11278 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
adamwit
2016-04-18 15:00:18 +00:00
parent 848c70d36d
commit 1e50f9a39a

View File

@@ -1327,7 +1327,7 @@ sub VCONTROL_TimerConv($$){
{return "";}
}
if ( $timerhour < "00" || $timerhour > "23" ){
if ( $timerhour < "00" || $timerhour > "24" ){
{return "";}
}
@@ -1336,7 +1336,7 @@ sub VCONTROL_TimerConv($$){
}
my $helpvalue = (($timerhour <<3) + ($timermin/10)) & 0xff;
push(@hextimerdata, (sprintf "%X", $helpvalue));
push(@hextimerdata, (sprintf "%02X", $helpvalue));
}
}