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

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

View File

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