diff options
| author | JF <jf@codingfield.com> | 2021-07-23 09:59:08 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-07-23 09:59:08 (GMT) |
| commit | db6a701644116932f11c54ee0f619464de9faeb7 (patch) | |
| tree | f2fb7999d6db212e416557ed12831d8ab38cc3c0 /src/BootloaderVersion.h | |
| parent | d96395c81021778af35b8b4bf965bfe8663eb081 (diff) | |
| parent | d6cccc2dcd95a7d332ee657d1357ae060389f6e6 (diff) | |
Merge branch 'develop' of JF/PineTime into master
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 +} |
