e37df03b7f593f5138139b9725f77715909fec3f
Bug: the device only woke from deep sleep on a timer; pressing BOOT during sleep did nothing. The 5-second-hold reset only worked in the brief awake window during a poll, which made the documented "hold BOOT to reset" gesture appear broken to the user. Reported live 2026-05-09. Fix: arm EXT0 wakeup on PIN_BTN_RESET (active-low — BOOT is pulled-up on the dev board) at every esp_deep_sleep_start. After the press wakes the chip, setup() runs and the existing check_reset_button() handles the rest of the 5-second hold and triggers the NVS clear + reprovision. Mocks: esp_sleep.h gains gpio_num_t typedef + g_ext0_wakeup_pin/level globals so the native test can assert the call shape. Test: FW-RESET-WAKE pins the contract — every deep_sleep_start must arm EXT0 on PIN_BTN_RESET, level 0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
pictureFrame ESP32 firmware — PlatformIO / Arduino
Releases
1
Languages
C++
61.1%
Python
31.4%
C
7.5%