From ebaea3024cbe782e72549a9de7781d2ae5cf31c9 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Sun, 21 Jan 2024 09:05:02 +0000 Subject: [PATCH] Re-enable SerialBT --- RNode_Firmware.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index b59c5d1..5367abf 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -1301,16 +1301,20 @@ 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)) { fifo_push(&serialFIFO, Serial.read()); } } + #else + if (!fifo_isfull(&serialFIFO)) { + fifo_push(&serialFIFO, Serial.read()); + } #endif }