Add files via upload

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and Philippe Teuwen committed 2026-09-01 17:57:31 +02:00
1 parent db35ed4854
commit d0261484af
1 file changed
+7 -1
+7 -1
View File
@@ -59,7 +59,13 @@
// flight, then block for an ack before sending more - which paces us to the real
// BLE/WiFi rate and prevents the ESP UART-RX overrun that dropped bulk downloads.
// WINDOW frames must fit the ESP UART RX FIFO + wireless send buffer.
#define BWM_FC_WINDOW 4 // max un-acked forward frames in flight
// Ceiling on un-acked forward frames. On a download the ESP acks steadily so
// this never bites; it only matters on a bidirectional UPLOAD, where the ESP
// defers the small acks while forwarding large incoming chunks. A tight value
// (4) let inflight hit the cap and stall the AT32 past the client timeout, so
// keep enough headroom to ride out delayed acks. Only ~1 response is ever
// really in flight during an upload, so this does not risk an ESP overrun.
#define BWM_FC_WINDOW 16 // max un-acked forward frames in flight
#ifndef BWM_FC_ACK_TIMEOUT_SPINS
#define BWM_FC_ACK_TIMEOUT_SPINS 200000 // safety valve: proceed if an ack is lost (avoid hard hang)
#endif // safety valve: give up waiting for credit (avoid hard hang)