Files
meshcore-tth/examples
tthandClaude Fable 5 c4f3941897 perf(repeater/ble): non-blocking console TX pump — main loop never stalls on BLE
bleWriteAll used to spin-retry with delay(3) when the SoftDevice
notification queue was full, stalling loop() up to ~0.9 s per call
while a client streamed the console (rxlog/pktlog drains). That is
long enough to disturb LoRa RX/TX timing on the relay path.

Replace with a 4 KB ring buffer: bleWriteAll only enqueues, and
bleTxPump() (each loop pass) hands the SoftDevice as much as it will
take right now — zero waiting. Overflow truncates the newest bytes;
a torn page loses its 'E,' trailer so the bridge re-requests the
same cursor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 21:24:20 +02:00
..
2026-06-06 21:09:38 +10:00
2026-06-06 21:09:38 +10:00