forked from xiaozhi/xiaozhi-esp32
add reset to factory
This commit is contained in:
17
main/SystemReset.h
Normal file
17
main/SystemReset.h
Normal 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
|
||||
Reference in New Issue
Block a user