fix(bw): Keys diag displaying wrongly navigation keys (#3859)

This commit is contained in:
3djc
2023-07-28 18:49:31 +10:00
committed by GitHub
parent 9f12025d11
commit 81f9b66ee5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -93,12 +93,12 @@ void menuRadioDiagKeys(event_t event)
if (i >= 7) { // max 7 lines on display
y = MENU_HEADER_HEIGHT + 1 + FH * 6;
lcdDrawText(8, y, keysGetLabel(k), 0);
displayKeyState(lcdNextPos + 10, y, i);
displayKeyState(lcdNextPos + 10, y, k);
}
else {
y = MENU_HEADER_HEIGHT + 1 + FH * i;
lcdDrawText(0, y, keysGetLabel(k), 0);
displayKeyState(5 * FW + 2, y, i);
displayKeyState(5 * FW + 2, y, k);
}
}
+1 -1
View File
@@ -66,7 +66,7 @@ void menuRadioDiagKeys(event_t event)
auto k = get_ith_key(i);
coord_t y = MENU_HEADER_HEIGHT + 1 + FH * i;
lcdDrawText(0, y, keysGetLabel(k), 0);
displayKeyState(5 * FW + 2, y, i);
displayKeyState(5 * FW + 2, y, k);
}
for (uint8_t i = 0, cnt = 0; i < switchGetMaxSwitches(); i++) {