@@ -111,8 +111,6 @@ void lcdDrawText(coord_t x, coord_t y, const char * s);
|
||||
void lcdDrawSizedText(coord_t x, coord_t y, const char * s, unsigned char len);
|
||||
void lcdDrawTextAlignedLeft(coord_t y, const char * s);
|
||||
|
||||
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(s)*FW+FW+1)/2, y, s)
|
||||
|
||||
void lcdDrawHexNumber(coord_t x, coord_t y, uint32_t val, LcdFlags mode=0);
|
||||
void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags mode, uint8_t len);
|
||||
void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags mode=0);
|
||||
|
||||
@@ -80,7 +80,7 @@ void menuModelFailsafe(event_t event)
|
||||
}
|
||||
}
|
||||
|
||||
lcdDrawTextAlignedCenter(0, TR_FAILSAFESET);
|
||||
lcdDrawText(LCD_W / 2, 0, STR_FAILSAFESET, CENTERED);
|
||||
lcdInvertLine(0);
|
||||
|
||||
coord_t x = colW;
|
||||
|
||||
@@ -202,7 +202,7 @@ void menuFirstCalib(event_t event)
|
||||
chainMenu(menuMainView);
|
||||
}
|
||||
else {
|
||||
lcdDrawTextAlignedCenter(0*FH, TR_MENUCALIBRATION);
|
||||
lcdDrawText(LCD_W / 2, 0, STR_MENUCALIBRATION, CENTERED);
|
||||
lcdInvertLine(0);
|
||||
menuCommonCalib(event);
|
||||
}
|
||||
|
||||
@@ -61,11 +61,7 @@ void menuChannelsView(event_t event)
|
||||
else if (g_model.extendedLimits)
|
||||
limits *= LIMIT_EXT_PERCENT / 100;
|
||||
|
||||
if (reusableBuffer.viewChannels.mixersView)
|
||||
lcdDrawTextAlignedCenter(0, TR_MIXERS_MONITOR);
|
||||
else
|
||||
lcdDrawTextAlignedCenter(0, TR_CHANNELS_MONITOR);
|
||||
|
||||
lcdDrawText(LCD_W / 2, 0, reusableBuffer.viewChannels.mixersView ? STR_MIXERS_MONITOR : STR_CHANNELS_MONITOR, CENTERED);
|
||||
lcdInvertLine(0);
|
||||
|
||||
// Column separator
|
||||
|
||||
Reference in New Issue
Block a user