mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Update main.cpp
This commit is contained in:
parent
306b38e356
commit
bd3dc2ecd2
@ -152,7 +152,6 @@ void enterNewActivity(Activity* activity) {
|
|||||||
// Verify long press on wake-up from deep sleep
|
// Verify long press on wake-up from deep sleep
|
||||||
void verifyWakeupLongPress() {
|
void verifyWakeupLongPress() {
|
||||||
// Skip verification for software resets (for example when calling esp_restart after sd card format)
|
// Skip verification for software resets (for example when calling esp_restart after sd card format)
|
||||||
// All other cases (deep sleep wake, power on, etc.) still require long press
|
|
||||||
if (esp_reset_reason() == ESP_RST_SW) {
|
if (esp_reset_reason() == ESP_RST_SW) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user