Add safety and context to spektrum and power meter

This commit is contained in:
3djc
2019-03-31 12:24:07 +02:00
parent cc33d5833b
commit 63383f15c1
8 changed files with 61 additions and 3 deletions
+6
View File
@@ -347,6 +347,12 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len)
lcdDrawSizedText(x, y, s, len, 0);
}
void lcdDrawCenteredText(coord_t y, const char * s, LcdFlags flags)
{
coord_t x = (LCD_W - FW * strlen(s)) / 2;
lcdDrawText(x, y, s, flags);
}
void lcdDrawText(coord_t x, coord_t y, const char * s, LcdFlags flags)
{
lcdDrawSizedText(x, y, s, 255, flags);