You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Robustness & fixes
Input validation everywhere: baudrate, mode and device name are validated on all input paths (BLE config characteristics, web UI) and when loaded from NVS - invalid stored values now fall back to safe defaults instead of corrupting the config.
BLE connection handling reworked: telemetry notifications are sent only after the client actually subscribes, and targeted at the active connection handle. Frames exceeding the negotiated MTU are dropped (with a one-time warning) instead of being silently truncated. The fast connection interval (7.5 ms) is now requested after GATT discovery completes rather than immediately on connect.
Wi-Fi WebSocket: the single-client policy is now enforced explicitly - a new client kicks the previous one; stale clients are cleaned up periodically.
Deferred reboots: settings changes and OTA completion no longer restart from inside the request handler - the restart is deferred to the main loop so the HTTP/BLE response is delivered first.
BOOT button (C3): proper debouncing with press/release detection - no more accidental BLE↔WEB mode flips from contact bounce.
Stale UART data is flushed and the CRSF parser reset on client connect, so no garbage first frame from data received while idle.
OTA: update size is validated; final Update.end() is no longer forced, so a corrupt upload is rejected instead of being committed.
Changed
Device name (BLE name / Wi-Fi SSID) is now limited to 20 printable ASCII haracters (was 31).
NimBLEDevice::setPower() migrated to dBm values (NimBLE-Arduino 2.x API).
Wi-Fi AP TX power is now applied on the AP-started event.