diff options
| author | Ulf Lilleengen <[email protected]> | 2025-12-02 11:20:43 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-12-02 11:20:43 +0100 |
| commit | e79592c7af7b3476d2e51f5859c586b9ff8f5381 (patch) | |
| tree | 6a196f718833b14c2c9804467793cc40cf6d7b32 /embassy-net-esp-hosted/src/lib.rs | |
| parent | b8afe4ff5fd590903861e44224171f37b9ae6e62 (diff) | |
feat: support OTA commands in esp-hosted driver
* Expose OTA functionality in control
* Handle OTA swap wait in runner
Diffstat (limited to 'embassy-net-esp-hosted/src/lib.rs')
| -rw-r--r-- | embassy-net-esp-hosted/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-net-esp-hosted/src/lib.rs b/embassy-net-esp-hosted/src/lib.rs index d882af8cf..7236e73e8 100644 --- a/embassy-net-esp-hosted/src/lib.rs +++ b/embassy-net-esp-hosted/src/lib.rs | |||
| @@ -234,6 +234,11 @@ where | |||
| 234 | tx_buf[..PayloadHeader::SIZE].fill(0); | 234 | tx_buf[..PayloadHeader::SIZE].fill(0); |
| 235 | } | 235 | } |
| 236 | Either4::Fourth(()) => { | 236 | Either4::Fourth(()) => { |
| 237 | // Extend the deadline if OTA | ||
| 238 | if self.shared.is_ota() { | ||
| 239 | self.heartbeat_deadline = Instant::now() + HEARTBEAT_MAX_GAP; | ||
| 240 | continue; | ||
| 241 | } | ||
| 237 | panic!("heartbeat from esp32 stopped") | 242 | panic!("heartbeat from esp32 stopped") |
| 238 | } | 243 | } |
| 239 | } | 244 | } |
