Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: double reset detector #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ForsakenHarmony
Copy link
Contributor

@ForsakenHarmony ForsakenHarmony commented Oct 26, 2021

Detects if the esp was reset 2 (or more) times during the given duration after booting.

Usage:

use esp_idf_svc::reset::detect_double_reset;

detect_double_reset(nvs.clone(), Duration::from_secs(3))?;

Depends on #15 (and in turn #13)

@ForsakenHarmony ForsakenHarmony marked this pull request as ready for review October 26, 2021 02:42
@ivmarkov ivmarkov force-pushed the master branch 3 times, most recently from 8a8adba to 5ccb542 Compare July 5, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants