diff options
author | SteveAmor <SteveAmor@users.noreply.github.com> | 2021-11-07 10:50:33 +0000 |
---|---|---|
committer | SteveAmor <SteveAmor@users.noreply.github.com> | 2021-11-07 10:50:33 +0000 |
commit | 5932391c8b2178cc0beed9f4c2b0aa4a24ac7e1f (patch) | |
tree | 0aa7b5045e4bfb473b066aa23a1a2380442db358 /src/components/settings | |
parent | 0aa73c2279f81a3cc2c730d253807b6102033195 (diff) |
Chimes option
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/Settings.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index 871ff3b6..b7e4dcf6 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -41,6 +41,16 @@ namespace Pinetime { return settings.clockFace; }; + void SetChimesState(uint8_t state) { + if (state != settings.chimesState) { + settingsChanged = true; + } + settings.chimesState = state; + }; + uint8_t GetChimesState() const { + return settings.chimesState; + }; + void SetPTSColorTime(Colors colorTime) { if (colorTime != settings.PTS.ColorTime) settingsChanged = true; @@ -173,6 +183,7 @@ namespace Pinetime { Notification notificationStatus = Notification::ON; uint8_t clockFace = 0; + uint8_t chimesState = 0; PineTimeStyle PTS; |