I don't see why <= instead of < here. Untested (#7196)
This commit is contained in:
@@ -45,7 +45,7 @@ void menuRadioDiagKeys(event_t event)
|
|||||||
displayKeyState(5 * FW + 2, y, i);
|
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)) {
|
if (SWITCH_EXISTS(i)) {
|
||||||
div_t qr = div(cnt++, 6);
|
div_t qr = div(cnt++, 6);
|
||||||
coord_t x = 4 * FH * qr.quot;
|
coord_t x = 4 * FH * qr.quot;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ bool menuRadioDiagKeys(event_t event)
|
|||||||
displayKeyState(70, y, i);
|
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)) {
|
if (SWITCH_EXISTS(i)) {
|
||||||
coord_t y = MENU_HEADER_HEIGHT + 1 + FH * i;
|
coord_t y = MENU_HEADER_HEIGHT + 1 + FH * i;
|
||||||
getvalue_t val = getValue(MIXSRC_FIRST_SWITCH + i);
|
getvalue_t val = getValue(MIXSRC_FIRST_SWITCH + i);
|
||||||
|
|||||||
Reference in New Issue
Block a user