Fix missing line on X7 and on x9 and x7 prevent unnecessary redraw of line (#4398)

This commit is contained in:
3djc
2017-02-04 21:26:05 +01:00
committed by Bertrand Songis
parent 17a77114d0
commit 38934767c8
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -99,6 +99,8 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
// Custom Screen with numbers
const coord_t pos[] = {0, 71, 143, 214};
uint8_t fields_count = 0;
lcdDrawSolidVerticalLine(69, 8, 48);
lcdDrawSolidVerticalLine(141, 8, 48);
for (uint8_t i=0; i<4; i++) {
for (uint8_t j=0; j<NUM_LINE_ITEMS; j++) {
source_t field = screen.lines[i].sources[j];
@@ -106,8 +108,6 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
fields_count++;
}
if (i==3) {
lcdDrawSolidVerticalLine(69, 8, 48);
lcdDrawSolidVerticalLine(141, 8, 48);
if (!TELEMETRY_STREAMING()) {
displayRssiLine();
return fields_count;