Re-enable bluetooth, but only if HAS_BLUETOOTH is defined

This commit is contained in:
jacob.eva 2024-01-20 11:44:34 +00:00
parent 53daa12a01
commit 9ef3a0c4b1
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

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