aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-12-31 09:56:03 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-03-02 13:38:31 +0200
commitfff0a00a4a251fafa1c195d9f92fdc07affe3ca2 (patch)
tree4318b106d753512c6901a5f2e44b891a38a2750d /src/systemtask/SystemTask.cpp
parent3b084d74c3b3864a4ce666dce0285aaf43a48a29 (diff)
Revert "added low battery message"
This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 3ceb63d4..07a85f5a 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -18,8 +18,6 @@
#include "BootErrors.h"
#include <memory>
-#include <algorithm>
-#include <cstring>
using namespace Pinetime::System;
@@ -408,16 +406,6 @@ void SystemTask::Work() {
case Messages::BatteryPercentageUpdated:
nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining());
break;
- case Messages::LowBattery: {
- Pinetime::Controllers::NotificationManager::Notification notif;
- constexpr char message[] = "Low Battery\0Charge your watch to prevent data loss.\0";
- constexpr size_t messageSize = std::min(sizeof(message), Pinetime::Controllers::NotificationManager::MaximumMessageSize());
- std::memcpy(notif.message.data(), message, messageSize);
- notif.size = messageSize;
- notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
- notificationManager.Push(std::move(notif));
- PushMessage(Messages::OnNewNotification);
- } break;
case Messages::OnPairing:
if (state == SystemTaskState::Sleeping) {
GoToRunning();