Disable sleep mode on the SPI NOR Flash when the version is unknown. This is because the current bootloader (which does not exposes its version) cannot initialize the chip when it's in sleep mode.

This feature will be re-enabled when the bootloader expses it's version.
This commit is contained in:
JF
2020-10-27 19:38:45 +01:00
parent ab7acd0f07
commit 1bb2eb9dcd
5 changed files with 49 additions and 4 deletions

12
src/BootloaderVersion.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
namespace Pinetime {
class BootloaderVersion {
public:
static uint32_t Major();
static uint32_t Minor();
static uint32_t Patch();
static const char* VersionString();
static bool IsValid();
};
}