]> git.tnoah.ca Git - lora-radio.git/commitdiff
Check console is activated
authorMark Qvist <mark@unsigned.io>
Sat, 28 Sep 2024 13:15:22 +0000 (15:15 +0200)
committerMark Qvist <mark@unsigned.io>
Sat, 28 Sep 2024 13:15:22 +0000 (15:15 +0200)
RNode_Firmware.ino

index f9f2af6fb69a89778d9905b11fce961d01bfce59..4ee0619b8ab1cf721bbe96fcd66e50f023b08189 100644 (file)
@@ -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 {