[EGD-7584] Fix OS factory reset

There was an issue that we were deleting files which were still open.
Added removed of FI .indexed file.
This commit is contained in:
Alek Rudnik
2021-11-02 15:36:29 +01:00
parent 16142faf38
commit 1666429e07
10 changed files with 54 additions and 8 deletions

View File

@@ -147,12 +147,10 @@ namespace sys
LOG_INFO(" ---> REBOOT <--- ");
powerManager->Reboot();
break;
case State::ShutdownReady: {
case State::ShutdownReady:
LOG_INFO(" ---> SHUTDOWN <--- ");
powerManager->PowerOff();
}
break;
break;
case State::RebootToUpdate:
LOG_INFO(" ---> REBOOT TO UPDATER <--- ");
powerManager->RebootToUpdate(updateReason);