Skip to content

Moved reset of reboot reason to main program - #1153

Merged
gskjold merged 2 commits into
mainfrom
fix/rdc_reset
Apr 9, 2026
Merged

gskjold merged 2 commits into
mainfrom
fix/rdc_reset

Conversation

@gskjold

@gskjold gskjold commented Feb 27, 2026

Copy link
Copy Markdown
Member

The check and reset of data about reboot reason was managed by the webserver. Moved this code to the main program as it makes more sense.

This change was triggered by a report from a customer who experienced reboot, but the reason on the status page was unhelpful because it said "Deep sleep". Deep sleep was introduced in v2.5.6 via #1121 and is there to make sure that the capacitor is charged as high as possible before continuing the boot. But this also caused the data about the previous reboot to be overwritten because the webserver class had already been initialized and reset the data.

Moving the data to the main program makes it possible to keep the cause past multiple deep sleeps, but it would loose the information of type of reboot. That's why deep sleep is disabled in this update, so that it is easier to see reason for a reboot. The program will still pause to charge the capacitor, but be "awake" for the process, and the maximum allowed loops to wait have been increased to 8, which makes it slightly slower, but still works as intended.

@gskjold gskjold added this to the v2.5.7 milestone Apr 9, 2026
@gskjold
gskjold merged commit df56118 into main Apr 9, 2026
@gskjold
gskjold deleted the fix/rdc_reset branch April 9, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant