mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-04 11:26:43 -04:00
Re-enable SerialBT
This commit is contained in:
parent
fcba036c01
commit
ebaea3024c
1 changed files with 7 additions and 3 deletions
|
@ -1301,16 +1301,20 @@ 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)) {
|
||||||
fifo_push(&serialFIFO, Serial.read());
|
fifo_push(&serialFIFO, Serial.read());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (!fifo_isfull(&serialFIFO)) {
|
||||||
|
fifo_push(&serialFIFO, Serial.read());
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue