Allow more the 2 hours digits for TIMEHOUR (#5715)

* Handle 3 digits or more in TIMEHOUR

* Cleanup
This commit is contained in:
3djc
2018-03-04 13:09:59 +01:00
committed by Andre Bernet
parent da5af2cac2
commit 4a88660a3d
2 changed files with 13 additions and 8 deletions
+6 -1
View File
@@ -813,7 +813,12 @@ void drawTimer(coord_t x, coord_t y, putstime_t tme, LcdFlags att, LcdFlags att2
#else
#define separator ':'
#endif
lcdDrawNumber(x, y, qr.quot, att|LEADING0|LEFT, 2);
if(qr.quot < 100) {
lcdDrawNumber(x, y, qr.quot, att|LEADING0|LEFT, 2);
}
else {
lcdDrawNumber(x, y, qr.quot, att|LEFT);
}
#if defined(CPUARM)
if (FONTSIZE(att) == MIDSIZE) {
lcdLastRightPos--;