Harden nRF52 OTA, USB sessions, and T096 controls

Bind Companion replies to request transports, make dual-CDC USB sessions nonblocking and reconnect-safe, and harden nRF52 watchdog/OTA storage paths. Fix T096 button debounce, display wake, sleep races, and the compact message layout; add exact WisBlock OTA profiles plus expanded native/static/HIL documentation.
This commit is contained in:
mikecarper committed 2026-09-01 20:51:43 -07:00
1 parent fcd1f8cc6c
commit ecaa5ac2a0
61 files changed
+4446 -226

No files matched your search

+14
View File
@@ -25,6 +25,20 @@ public:
// Returns true once for each pending Bluetooth pairing prompt. Non-BLE
// transports keep the default implementation so UI code can poll safely.
virtual bool takePairingRequest() { return false; }
// Capture and later address the transport which supplied the current
// command. Multi-transport implementations override these so asynchronous
// replies do not follow a newer client's command or fall back to broadcast.
virtual BaseSerialInterface* captureReplyRoute() { return this; }
virtual bool isReplyRouteAvailable(BaseSerialInterface* route) const {
return route == this && isEnabled() && isConnected();
}
virtual bool isReplyRouteWriteBusy(BaseSerialInterface* route) const {
return !isReplyRouteAvailable(route) || isWriteBusy();
}
virtual size_t writeFrameToRoute(BaseSerialInterface* route,
const uint8_t src[], size_t len) {
return route == this ? writeFrame(src, len) : 0;
}
// Multi-transport implementations can pin a sequence of response frames to
// the interface which supplied the current command. Single transports have
// nothing to route, so their default implementations are no-ops.