]> git.tnoah.ca Git - lora-radio.git/commitdiff
Re-enable bluetooth, but only if HAS_BLUETOOTH is defined
authorjacob.eva <x00010@disroot.org>
Sat, 20 Jan 2024 11:44:34 +0000 (11:44 +0000)
committerjacob.eva <x00010@disroot.org>
Sat, 20 Jan 2024 11:44:34 +0000 (11:44 +0000)
RNode_Firmware.ino

index fc69a9021d426d61255661e02aec29957a88c710..df36c5cd97e079ae3c985809348458ebf174a545 100644 (file)
@@ -1305,10 +1305,10 @@ void buffer_serial() {
         if (!fifo_isfull_locked(&serialFIFO)) {
           fifo_push_locked(&serialFIFO, Serial.read());
         }
-      #else
-        if (HAS_BLUETOOTH && bt_state == BT_STATE_CONNECTED) {
+      #elif HAS_BLUETOOTH
+        if (bt_state == BT_STATE_CONNECTED) {
           if (!fifo_isfull(&serialFIFO)) {
-            //fifo_push(&serialFIFO, SerialBT.read());
+            fifo_push(&serialFIFO, SerialBT.read());
           }
         } else {
           if (!fifo_isfull(&serialFIFO)) {