From 7ccd5a7b638e3ca03d57e72e1ae4001afb770106 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Sun, 5 Apr 2026 00:16:40 -0300 Subject: [PATCH] feat: enhance ESP32 boot stability with deterministic instruction counting and mark subprojects as dirty --- backend/app/services/esp32_worker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/services/esp32_worker.py b/backend/app/services/esp32_worker.py index d0329b2..55b6eae 100644 --- a/backend/app/services/esp32_worker.py +++ b/backend/app/services/esp32_worker.py @@ -216,8 +216,9 @@ def main() -> None: # noqa: C901 (complexity OK for inline worker) b'-drive', f'file={firmware_path},if=mtd,format=raw'.encode(), ] - # ── ESP32-C3 requires deterministic instruction counting for stable boot - if 'c3' in machine: + # Deterministic instruction counting for stable timers (WiFi beacons, boot) + # Required for ESP32-C3 boot; also needed for ESP32 WiFi on virtualized hosts + if 'c3' in machine or wifi_enabled: args_list.extend([b'-icount', b'3']) # ── WiFi NIC (slirp user-mode networking) ──────────────────────────────