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) {
bt_enable_pairing();
} else if (duration > 4000) {
#if HAS_CONSOLE
console_active = true;
console_start();
#endif
} else if (duration > 2000) {
sleep_now();
} else {