Fixed void unwanted OTA upgrade when safeboot starts for the first time (#21360)

This commit is contained in:
s-hadinger 2024-05-05 18:03:32 +02:00 committed by GitHub
parent 73b0ec2c1d
commit 3d0532ce8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ All notable changes to this project will be documented in this file.
- Berry `math.inf`, `math.isinf()` and fixed json ouput for `inf` and `nan` (#21304)
- Compilation of Ethernet when SPI drivers are disabled (#21321)
- Conflicting log_level definitions in NimBLE (#21337)
- Avoid unwanted OTA upgrade when safeboot starts for the first time
### Removed
- LVGL disabled vector graphics (#21242)

View File

@ -177,7 +177,7 @@ void QPCWrite(const void *pSettings, unsigned nSettingsLen) {
}
bool OtaFactoryRead(void) {
uint32_t pOtaLoader;
uint32_t pOtaLoader = 0;
NvmLoad("otal", "otal", &pOtaLoader, sizeof(pOtaLoader));
return pOtaLoader;
}