mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Add FS recovery for failed FS updates.
This commit is contained in:
parent
2bb23e6d3e
commit
a3cb1d63fe
6 changed files with 41 additions and 4 deletions
2
GitOTA.h
2
GitOTA.h
|
|
@ -37,6 +37,7 @@ class GitRepo {
|
|||
};
|
||||
class GitUpdater {
|
||||
public:
|
||||
bool lockFS = false;
|
||||
uint8_t status = 0;
|
||||
uint32_t lastCheck = 0;
|
||||
bool updateAvailable = false;
|
||||
|
|
@ -55,6 +56,7 @@ class GitUpdater {
|
|||
void setCurrentRelease(GitRepo &repo);
|
||||
void loop();
|
||||
void toJSON(JsonObject &obj);
|
||||
bool recoverFilesystem();
|
||||
int checkInternet();
|
||||
void emitUpdateCheck(uint8_t num=255);
|
||||
void emitDownloadProgress(size_t total, size_t loaded, const char *evt = "updateProgress");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue