Fix missing line on X7 and on x9 and x7 prevent unnecessary redraw of line (#4398)
This commit is contained in:
@@ -310,6 +310,7 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
|
|||||||
{
|
{
|
||||||
// Custom Screen with numbers
|
// Custom Screen with numbers
|
||||||
uint8_t fields_count = 0;
|
uint8_t fields_count = 0;
|
||||||
|
lcdDrawSolidVerticalLine(63, 8, 48);
|
||||||
for (uint8_t i=0; i<4; i++) {
|
for (uint8_t i=0; i<4; i++) {
|
||||||
for (uint8_t j=0; j<NUM_LINE_ITEMS; j++) {
|
for (uint8_t j=0; j<NUM_LINE_ITEMS; j++) {
|
||||||
source_t field = screen.lines[i].sources[j];
|
source_t field = screen.lines[i].sources[j];
|
||||||
@@ -317,7 +318,6 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
|
|||||||
fields_count++;
|
fields_count++;
|
||||||
}
|
}
|
||||||
if (i==3) {
|
if (i==3) {
|
||||||
lcdDrawSolidVerticalLine(63, 8, 48);
|
|
||||||
if (!TELEMETRY_STREAMING()) {
|
if (!TELEMETRY_STREAMING()) {
|
||||||
displayRssiLine();
|
displayRssiLine();
|
||||||
return fields_count;
|
return fields_count;
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
|
|||||||
// Custom Screen with numbers
|
// Custom Screen with numbers
|
||||||
const coord_t pos[] = {0, 71, 143, 214};
|
const coord_t pos[] = {0, 71, 143, 214};
|
||||||
uint8_t fields_count = 0;
|
uint8_t fields_count = 0;
|
||||||
|
lcdDrawSolidVerticalLine(69, 8, 48);
|
||||||
|
lcdDrawSolidVerticalLine(141, 8, 48);
|
||||||
for (uint8_t i=0; i<4; i++) {
|
for (uint8_t i=0; i<4; i++) {
|
||||||
for (uint8_t j=0; j<NUM_LINE_ITEMS; j++) {
|
for (uint8_t j=0; j<NUM_LINE_ITEMS; j++) {
|
||||||
source_t field = screen.lines[i].sources[j];
|
source_t field = screen.lines[i].sources[j];
|
||||||
@@ -106,8 +108,6 @@ bool displayNumbersTelemetryScreen(FrSkyScreenData & screen)
|
|||||||
fields_count++;
|
fields_count++;
|
||||||
}
|
}
|
||||||
if (i==3) {
|
if (i==3) {
|
||||||
lcdDrawSolidVerticalLine(69, 8, 48);
|
|
||||||
lcdDrawSolidVerticalLine(141, 8, 48);
|
|
||||||
if (!TELEMETRY_STREAMING()) {
|
if (!TELEMETRY_STREAMING()) {
|
||||||
displayRssiLine();
|
displayRssiLine();
|
||||||
return fields_count;
|
return fields_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user