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
@@ -398,6 +398,12 @@ void lcdDrawText(coord_t x, coord_t y, const char * s, LcdFlags flags)
lcdDrawSizedText(x, y, s, 255, flags);
}
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)
{
lcdDrawText(x, y, s, 0);