add reset to factory

This commit is contained in:
Terrence
2024-09-10 00:45:13 +08:00
parent c212e0c482
commit 20c8c98b38
4 changed files with 90 additions and 14 deletions

17
main/SystemReset.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _SYSTEM_RESET_H
#define _SYSTEM_RESET_H
class SystemReset {
public:
SystemReset();
void CheckButtons();
private:
void ResetNvsFlash();
void ResetToFactory();
void RestartInSeconds(int seconds);
};
#endif