Skip to content

Commit 49ada34

Browse files
Make default SerialBT FIFO 1K (#3032)
BT SPP doesn't have backoff and we can receive long messages. If there's not enough memory to store them then they will be truncated. Increase the default space to 1K to help avoid this issue.
1 parent 2124367 commit 49ada34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SerialBT/src/SerialBT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SerialBT_ : public HardwareSerial {
7979
// Lockless, IRQ-handled circular queue
8080
uint32_t _writer;
8181
uint32_t _reader;
82-
size_t _fifoSize = 32;
82+
size_t _fifoSize = 1024;
8383
uint8_t *_queue;
8484

8585
const int RFCOMM_SERVER_CHANNEL = 1;

0 commit comments

Comments
 (0)