diff options
| author | Avamander <avamander@gmail.com> | 2021-04-24 09:00:45 (GMT) |
|---|---|---|
| committer | Avamander <avamander@gmail.com> | 2021-04-24 09:00:45 (GMT) |
| commit | 69898545193a82f7d72c9f47c9d9de36167b157b (patch) | |
| tree | cf2bea6d67e8d91a7d6222b8e0b55a0075575003 /src/drivers/Watchdog.h | |
| parent | 40d45d923b033363ff1304b47eac238dd4495a57 (diff) | |
Changed access modified indentation
Diffstat (limited to 'src/drivers/Watchdog.h')
| -rw-r--r-- | src/drivers/Watchdog.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/Watchdog.h b/src/drivers/Watchdog.h index f174189..03807d6 100644 --- a/src/drivers/Watchdog.h +++ b/src/drivers/Watchdog.h @@ -4,7 +4,7 @@ namespace Pinetime { namespace Drivers { class Watchdog { - public: + public: enum class ResetReasons { ResetPin, Watchdog, SoftReset, CpuLockup, SystemOff, LpComp, DebugInterface, NFC, HardReset }; void Setup(uint8_t timeoutSeconds); void Start(); @@ -14,20 +14,20 @@ namespace Pinetime { } static const char* ResetReasonToString(ResetReasons reason); - private: + private: ResetReasons resetReason; ResetReasons ActualResetReason() const; }; class WatchdogView { - public: + public: WatchdogView(const Watchdog& watchdog) : watchdog {watchdog} { } Watchdog::ResetReasons ResetReason() const { return watchdog.ResetReason(); } - private: + private: const Watchdog& watchdog; }; } |
