diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-06-29 19:10:36 (GMT) |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-06-29 19:10:36 (GMT) |
| commit | 4f21748aa2a4693bd4b243ab0ebe11482d1aaf09 (patch) | |
| tree | 762dd147b5d08db903da93883e7dc8dcaf6292cd /src/BootloaderVersion.h | |
| parent | 660a8597f6edc66deec94782817613e1a4f84a6d (diff) | |
| parent | f317d54218659af437d840d00fd349e7919a243f (diff) | |
Merge remote-tracking branch 'upstream/develop' into pinetimestyle-colorpicker
Diffstat (limited to 'src/BootloaderVersion.h')
| -rw-r--r-- | src/BootloaderVersion.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/BootloaderVersion.h b/src/BootloaderVersion.h index c1ede0f..f812741 100644 --- a/src/BootloaderVersion.h +++ b/src/BootloaderVersion.h @@ -3,10 +3,15 @@ namespace Pinetime { class BootloaderVersion { public: - static uint32_t Major(); - static uint32_t Minor(); - static uint32_t Patch(); + static const uint32_t Major(); + static const uint32_t Minor(); + static const uint32_t Patch(); static const char* VersionString(); - static bool IsValid(); + static const bool IsValid(); + static void SetVersion(uint32_t v); + private: + static uint32_t version; + static constexpr size_t VERSION_STR_LEN = 12; + static char versionString[VERSION_STR_LEN]; }; -}
\ No newline at end of file +} |
