Failsafe screen issue

This commit is contained in:
Bertrand Songis
2019-05-06 10:15:59 +02:00
parent e5e734467b
commit 52e5e1aa25
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ void menuModelFailsafe(event_t event)
lcdDrawTextAlignedCenter(0, FAILSAFESET);
lcdInvertLine(0);
for (uint8_t i=0; i<LCD_LINES-1; i++) {
for (uint8_t i=0; i<NUM_BODY_LINES; i++) {
coord_t y = MENU_HEADER_HEIGHT + 1 + i * FH;
uint8_t k = i + menuVerticalOffset + HEADER_LINE;
uint8_t k = i + menuVerticalOffset;
LcdFlags attr = (sub == k) ? INVERS : 0;
uint8_t wbar = LCD_W - FW * 4 - FWNUM * 4;
@@ -77,7 +77,7 @@ void menuModelFailsafe(event_t event)
int32_t failsafeValue = g_model.failsafeChannels[k];
// Channel
putsChn(0, y, k, SMLSIZE);
putsChn(0, y, k + 1, SMLSIZE);
// Value
LcdFlags flags = TINSIZE;
+1
View File
@@ -20,6 +20,7 @@ options = {
}
}
def timestamp():
return datetime.datetime.now().strftime("%y%m%d")