diff options
| author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2023-01-07 21:23:15 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-01-09 21:41:21 +0100 |
| commit | 96165a8541b33baace920e26f062b2e282d644c6 (patch) | |
| tree | 41a5c6ec1f9a9981fcf970b7b48095b54c142d64 /src/drivers/Watchdog.h | |
| parent | 09db67e003ab593956b4d4474fd08e7548985030 (diff) | |
Format header files
In my PR updating clang-format, I forgot to also format the headers.
Diffstat (limited to 'src/drivers/Watchdog.h')
| -rw-r--r-- | src/drivers/Watchdog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/Watchdog.h b/src/drivers/Watchdog.h index 03807d61..22aa9df6 100644 --- a/src/drivers/Watchdog.h +++ b/src/drivers/Watchdog.h @@ -9,9 +9,11 @@ namespace Pinetime { void Setup(uint8_t timeoutSeconds); void Start(); void Kick(); + ResetReasons ResetReason() const { return resetReason; } + static const char* ResetReasonToString(ResetReasons reason); private: @@ -23,6 +25,7 @@ namespace Pinetime { public: WatchdogView(const Watchdog& watchdog) : watchdog {watchdog} { } + Watchdog::ResetReasons ResetReason() const { return watchdog.ResetReason(); } |
