Skip to content

Add configurable startup delay before power latch activation - #600

Merged
EFeru merged 1 commit into
EFeru:mainfrom
anttix:latch-delay
Jul 4, 2026
Merged

Add configurable startup delay before power latch activation#600
EFeru merged 1 commit into
EFeru:mainfrom
anttix:latch-delay

Conversation

@anttix

@anttix anttix commented May 31, 2026

Copy link
Copy Markdown

Add STARTUP_DELAY_MS to prevent the board from latching on when the MCU is briefly back-powered through unexpected means such as UART. The delay is applied before the self-latch GPIO is set, assuming a transient power source will fade during the window and never engage the latch.

Add STARTUP_DELAY_MS (default 1000 ms) to prevent the board from
latching on when the MCU is briefly back-powered through unexpected
means such as UART. The delay is applied after peripheral init but
before the self-latch GPIO is set, so a transient power source will
lose power during the window and never engage the latch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@EFeru
EFeru merged commit 4f141cb into EFeru:main Jul 4, 2026
1 check passed
@novval

novval commented Jul 6, 2026

Copy link
Copy Markdown

Instead of a delay, it is better to monitor the battery voltage.

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.

3 participants