Fixed IsBetweenHours (#3648)

Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
This commit is contained in:
Eduardo Quezada D'Ottone 2023-12-08 11:21:36 -03:00 committed by GitHub
parent 4adc2dcb16
commit bb457b87de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}