1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

X9E prevent top LCD display overflow

This commit is contained in:
3djc 2019-03-24 11:08:48 +01:00
parent 1357afeb23
commit 26c0d40d4b

View file

@ -374,7 +374,7 @@ void setTopSecondTimer(uint32_t value)
uint32_t secs = qr.rem;
qr = div(qr.quot, 60);
uint32_t mins = qr.rem;
uint32_t hours = qr.quot;
uint32_t hours = min(qr.quot, 99);
qr = div(secs, 10);
segs = OpTimeLCDsegs[qr.rem];