application: fix cable detection
This commit is contained in:
parent
d7223dd518
commit
3ce2418f18
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue