From bb9f515348626dbe7ddedd3b428e27cff830899c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 28 Sep 2024 15:15:22 +0200 Subject: [PATCH] Check console is activated --- RNode_Firmware.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index f9f2af6..4ee0619 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -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 {