From 9ef3a0c4b14c78c1f5fb3a20484f37a3e015cbb0 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Sat, 20 Jan 2024 11:44:34 +0000 Subject: [PATCH] Re-enable bluetooth, but only if HAS_BLUETOOTH is defined --- RNode_Firmware.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index fc69a90..df36c5c 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -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)) {