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:
parent
1357afeb23
commit
26c0d40d4b
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue