application: fix cable detection

This commit is contained in:
King Kévin 2019-12-31 14:26:18 +01:00
parent d7223dd518
commit 3ce2418f18
1 changed files with 1 additions and 1 deletions

View File

@ -1529,13 +1529,13 @@ void main(void)
lcd_hd44780_write_line(true, line, strlen(line)); // write message
}
}
test_end:
if (cable_changed) {
// next cable because the current one (reuse allocated current for the next)
struct cable_t* cable_tmp = cable_current;
cable_current = cable_next;
cable_next = cable_tmp;
}
test_end:;
} // !interactive
while (!interactive && rtc_get_counter_val() >= last_connect_time + SHUTDOWN_TIMEOUT) { // time to shut down
#if !DEBUG