From: Mark Qvist Date: Sat, 28 Sep 2024 13:15:22 +0000 (+0200) Subject: Check console is activated X-Git-Url: https://git.tnoah.ca/?a=commitdiff_plain;h=bb9f515348626dbe7ddedd3b428e27cff830899c;p=lora-radio.git Check console is activated --- 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 {