rename files

This commit is contained in:
Terrence
2024-11-05 20:15:00 +08:00
parent bc4b0a0bb1
commit 458ac2c999
41 changed files with 155 additions and 147 deletions

24
main/system_reset.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef _SYSTEM_RESET_H
#define _SYSTEM_RESET_H
class SystemReset {
public:
static SystemReset& GetInstance() {
static SystemReset instance;
return instance;
}
void CheckButtons();
private:
SystemReset(); // 构造函数私有化
SystemReset(const SystemReset&) = delete; // 禁用拷贝构造
SystemReset& operator=(const SystemReset&) = delete; // 禁用赋值操作
void ResetNvsFlash();
void ResetToFactory();
void RestartInSeconds(int seconds);
};
#endif