I don't see why <= instead of < here. Untested (#7196)

This commit is contained in:
Bertrand Songis
2019-12-16 07:48:19 +01:00
committed by GitHub
parent 9abcee430a
commit b475a7064d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ void menuRadioDiagKeys(event_t event)
displayKeyState(5 * FW + 2, y, i);
}
for (uint8_t i = 0, cnt = 0; i <= NUM_SWITCHES; i++) {
for (uint8_t i = 0, cnt = 0; i < NUM_SWITCHES; i++) {
if (SWITCH_EXISTS(i)) {
div_t qr = div(cnt++, 6);
coord_t x = 4 * FH * qr.quot;
+1 -1
View File
@@ -61,7 +61,7 @@ bool menuRadioDiagKeys(event_t event)
displayKeyState(70, y, i);
}
for (uint8_t i = 0; i <= NUM_SWITCHES; i++) {
for (uint8_t i = 0; i < NUM_SWITCHES; i++) {
if (SWITCH_EXISTS(i)) {
coord_t y = MENU_HEADER_HEIGHT + 1 + FH * i;
getvalue_t val = getValue(MIXSRC_FIRST_SWITCH + i);