watchdog: Replace WatchdogView with const Watchdog

This commit is contained in:
Riku Isokoski
2023-02-23 21:34:06 +02:00
parent 26478d9006
commit ff34cf196e
8 changed files with 12 additions and 26 deletions

View File

@@ -20,18 +20,5 @@ namespace Pinetime {
ResetReasons resetReason;
ResetReasons ActualResetReason() const;
};
class WatchdogView {
public:
WatchdogView(const Watchdog& watchdog) : watchdog {watchdog} {
}
Watchdog::ResetReasons ResetReason() const {
return watchdog.ResetReason();
}
private:
const Watchdog& watchdog;
};
}
}