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
+5
View File
@@ -132,6 +132,11 @@ inline void lcdDrawText(coord_t x, coord_t y, const char * s, LcdFlags attr=0)
lcd->drawText(x, y, s, attr);
}
inline void lcdDrawCenteredText(coord_t y, const char * s, LcdFlags attr=0)
{
lcd->drawText(LCD_W/2, y, s, attr | CENTERED);
}
inline void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlags attr=0)
{
lcd->drawSizedText(x, y, s, len, attr);