Check console is activated

This commit is contained in:
Mark Qvist 2024-09-28 15:15:22 +02:00
parent a134cbfb9c
commit bb9f515348

View File

@ -1367,8 +1367,10 @@ void button_event(uint8_t event, unsigned long duration) {
if (duration > 6000) { if (duration > 6000) {
bt_enable_pairing(); bt_enable_pairing();
} else if (duration > 4000) { } else if (duration > 4000) {
console_active = true; #if HAS_CONSOLE
console_start(); console_active = true;
console_start();
#endif
} else if (duration > 2000) { } else if (duration > 2000) {
sleep_now(); sleep_now();
} else { } else {