never loop waiting on hardware without some sort of timeout ;-)

related to https://github.com/meshtastic/Meshtastic-esp32/issues/53
This commit is contained in:
geeksville
2020-03-25 12:25:46 -07:00
parent 65128a04c9
commit 3443e60718
2 changed files with 11 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
/// Error codes for critical error
enum CriticalErrorCode { NoError, ErrTxWatchdog };
enum CriticalErrorCode { NoError, ErrTxWatchdog, ErrSleepEnterWait };
/// Record an error that should be reported via analytics
void recordCriticalError(CriticalErrorCode code, uint32_t address = 0);