Skip to content

feature/autostart - #85

Open
JoelHer wants to merge 5 commits into
mainfrom
feature/autostart
Open

feature/autostart#85
JoelHer wants to merge 5 commits into
mainfrom
feature/autostart

Conversation

@JoelHer

@JoelHer JoelHer commented Jul 23, 2026

Copy link
Copy Markdown
Member

This pull request refactors the device recovery flow to improve handling of the OTA boot process and adds logic to automatically boot into the ota_0 partition if no device connects to the access point within 30 seconds. It also adds a developer note about future boot flag logic. The main changes are grouped below:

Recovery Boot Flow Improvements:

  • The main task now waits up to 30 seconds for a device to connect to the Wi-Fi access point. If no device connects, the system automatically boots into the ota_0 partition. If a device connects, the system stays in recovery mode.
  • Added detailed logging for device connection attempts and connected device MAC addresses to aid debugging and monitoring.

OTA Boot Partition Handling:

  • Refactored the OTA boot logic into a new helper function boot_ota0_partition, simplifying error handling and code reuse. The HTTP handler now delegates to this function.

Developer Notes:

  • Added a prominent comment in app_main about planned boot flag logic to skip recovery mode in certain scenarios (e.g., when in flight), improving maintainability and future development clarity.

Closes #84

@JoelHer JoelHer linked an issue Jul 23, 2026 that may be closed by this pull request
@JoelHer JoelHer self-assigned this Jul 23, 2026
@JoelHer JoelHer added the enhancement New feature or request label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto boot in recovery mode

1 participant