mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2024-10-01 03:15:39 -04:00
Check console is activated
This commit is contained in:
parent
a134cbfb9c
commit
bb9f515348
@ -1367,8 +1367,10 @@ void button_event(uint8_t event, unsigned long duration) {
|
||||
if (duration > 6000) {
|
||||
bt_enable_pairing();
|
||||
} else if (duration > 4000) {
|
||||
console_active = true;
|
||||
console_start();
|
||||
#if HAS_CONSOLE
|
||||
console_active = true;
|
||||
console_start();
|
||||
#endif
|
||||
} else if (duration > 2000) {
|
||||
sleep_now();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user