Add new screen that allows the user to manually validate the new firmware he's just OTA'ed.

Still need to find a way to display this screen when needed.
This commit is contained in:
JF
2020-08-11 17:50:00 +02:00
parent 27fa273d83
commit bbfc20c3ff
8 changed files with 179 additions and 9 deletions

View File

@@ -58,14 +58,6 @@ void SystemTask::Work() {
spi.Init();
spiNorFlash.Init();
// Write the 'image OK' flag if it's not already done
// TODO implement a better verification mecanism for the image (ask for user confirmation via UI/BLE ?)
uint32_t* imageOkPtr = reinterpret_cast<uint32_t *>(0x7BFE8);
uint32_t imageOk = *imageOkPtr;
if(imageOk != 1)
Pinetime::Drivers::InternalFlash::WriteWord(0x7BFE8, 1);
nimbleController.Init();
nimbleController.StartAdvertising();
lcd.Init();