Fixed IsBetweenHours (#3648)
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
This commit is contained in:
parent
4adc2dcb16
commit
bb457b87de
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ void RtcCalcLocalTime(void)
|
|||
bool8 IsBetweenHours(s32 hours, s32 begin, s32 end)
|
||||
{
|
||||
if (end < begin)
|
||||
return hours > begin || hours < end;
|
||||
return hours >= begin || hours < end;
|
||||
else
|
||||
return hours >= begin && hours < end;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue