aboutsummaryrefslogtreecommitdiff
path: root/embassy-net-esp-hosted/src/lib.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-12-02 13:54:42 +0100
committerUlf Lilleengen <[email protected]>2025-12-02 13:54:42 +0100
commit220e8b5973efe0562f5d96cdd92b87badd313f00 (patch)
treea9be9a66096c01efad268c9e4a6eede1c938a33b /embassy-net-esp-hosted/src/lib.rs
parent4e69d44d184f4920f2f167a6ba9411cea0759dab (diff)
chore: unify ota and init states
Diffstat (limited to 'embassy-net-esp-hosted/src/lib.rs')
-rw-r--r--embassy-net-esp-hosted/src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/embassy-net-esp-hosted/src/lib.rs b/embassy-net-esp-hosted/src/lib.rs
index f0cf04d04..2c7377281 100644
--- a/embassy-net-esp-hosted/src/lib.rs
+++ b/embassy-net-esp-hosted/src/lib.rs
@@ -234,13 +234,12 @@ 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 237 // Extend the deadline if initializing
238 if self.shared.is_ota() { 238 if let ioctl::ControlState::Reboot = self.shared.state() {
239 self.heartbeat_deadline = Instant::now() + HEARTBEAT_MAX_GAP; 239 self.heartbeat_deadline = Instant::now() + HEARTBEAT_MAX_GAP;
240 continue; 240 continue;
241 } else {
242 panic!("heartbeat from esp32 stopped")
243 } 241 }
242 panic!("heartbeat from esp32 stopped")
244 } 243 }
245 } 244 }
246 245