[FrSky] NO DATA displayed on the status line when needed

This commit is contained in:
bsongis
2012-02-29 07:12:12 +00:00
parent 46b17b8d91
commit 8496624617
+6
View File
@@ -643,6 +643,7 @@ void resetTelemetry()
#if defined(FRSKY) #if defined(FRSKY)
void displayRssiLine() void displayRssiLine()
{ {
if (frskyStreaming > 0) {
lcd_hline(0, 54, 128, 0); // separator lcd_hline(0, 54, 128, 0); // separator
lcd_putsLeft(7*FH+1, STR_TX); lcd_outdezNAtt(4*FW, 7*FH+1, frskyRSSI[1].value, LEADING0, 2); lcd_putsLeft(7*FH+1, STR_TX); lcd_outdezNAtt(4*FW, 7*FH+1, frskyRSSI[1].value, LEADING0, 2);
lcd_rect(25, 57, 38, 7); lcd_rect(25, 57, 38, 7);
@@ -652,6 +653,11 @@ void displayRssiLine()
uint8_t v = 9*frskyRSSI[0].value/25; uint8_t v = 9*frskyRSSI[0].value/25;
lcd_filled_rect(66+36-v, 58, v, 5); lcd_filled_rect(66+36-v, 58, v, 5);
} }
else {
lcd_puts(7*FW, 7*FH+1, STR_NODATA);
lcd_filled_rect(0, DISPLAY_H-8, DISPLAY_W, 8);
}
}
#endif #endif
#if defined(FRSKY_HUB) || defined(WS_HOW_HIGH) #if defined(FRSKY_HUB) || defined(WS_HOW_HIGH)