mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
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:
parent
bb90b0fa74
commit
e14be308e3
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user