summaryrefslogtreecommitdiff
path: root/src/components/ble/NotificationManager.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-02-14 15:37:28 (GMT)
committerGitea <gitea@fake.local>2021-02-14 15:37:28 (GMT)
commit9d7955b6c0128a72475742495dabb57134dbe56d (patch)
tree27bdf0ae697453f31e0fa6952d3bf0ecbea48c68 /src/components/ble/NotificationManager.cpp
parentf534fb0356762122842ea49b481619cb963a5d27 (diff)
parent324c7dab326ea23a6c8502bbb8c6e9b9d87a839f (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/components/ble/NotificationManager.cpp')
-rw-r--r--src/components/ble/NotificationManager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/ble/NotificationManager.cpp b/src/components/ble/NotificationManager.cpp
index dabcb4b..36abf02 100644
--- a/src/components/ble/NotificationManager.cpp
+++ b/src/components/ble/NotificationManager.cpp
@@ -71,6 +71,14 @@ bool NotificationManager::AreNewNotificationsAvailable() {
return newNotification;
}
+bool NotificationManager::IsVibrationEnabled() {
+ return vibrationEnabled;
+}
+
+void NotificationManager::ToggleVibrations() {
+ vibrationEnabled = !vibrationEnabled;
+}
+
bool NotificationManager::ClearNewNotificationFlag() {
return newNotification.exchange(false);
}