hw21,26: fix compiler error with openwrt compiler

BugzId: none
This commit is contained in:
Marcel Reichmuth 2020-08-18 13:37:06 +02:00
parent ef1aa826dd
commit af519ebed1
1 changed files with 2 additions and 1 deletions

View File

@ -1518,6 +1518,7 @@ static void check_reset_button(void)
bool rx_line;
int has_input;
int c = -1;
int i;
/* Get state machine inputs */
button = get_button_state();
@ -1546,7 +1547,7 @@ static void check_reset_button(void)
}
/* if one of the SMs has an action, stop here */
for (int i=0; i<3; i++) {
for (i=0; i<3; i++) {
if ((a_[i] == FACTORY_RESET) || (a_[i] == RECOVERY_BOOT)) {
action = a_[i];
break;