mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-02 14:46:16 -04:00
Check console is activated
This commit is contained in:
parent
a134cbfb9c
commit
bb9f515348
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue