From bbfc20c3ff4b741cd21b162389905a59a8e22f3f Mon Sep 17 00:00:00 2001 From: JF Date: Tue, 11 Aug 2020 17:50:00 +0200 Subject: 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. --- src/Components/FirmwareValidator/FirmwareValidator.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Components/FirmwareValidator/FirmwareValidator.h (limited to 'src/Components/FirmwareValidator/FirmwareValidator.h') diff --git a/src/Components/FirmwareValidator/FirmwareValidator.h b/src/Components/FirmwareValidator/FirmwareValidator.h new file mode 100644 index 00000000..aa576d88 --- /dev/null +++ b/src/Components/FirmwareValidator/FirmwareValidator.h @@ -0,0 +1,18 @@ +#pragma once + +#include + +namespace Pinetime { + namespace Controllers { + class FirmwareValidator { + public: + void Validate(); + bool IsValidated() const; + + void Reset(); + private: + static constexpr uint32_t validBitAdress {0x7BFE8}; + static constexpr uint32_t validBitValue {1}; + }; + } +} -- cgit v1.2.3-70-g09d2