summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorminacode <minamoto9@web.de>2022-12-20 21:56:06 +0100
committerJF <JF002@users.noreply.github.com>2022-12-27 12:13:52 +0100
commitdbbbbfd1ac89607b5194fa04c15f6b4f84d064bf (patch)
tree8a65c57b57ce47b1793a486bdd745dc7c0c188a3 /src/systemtask/SystemTask.cpp
parentc02b50599808af6d334071f407e36a3fe1c11704 (diff)
hopefully fixed crash on notification
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 0be587a5..2f5fd214 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -428,7 +428,7 @@ void SystemTask::Work() {
Pinetime::Controllers::NotificationManager::Notification notif;
std::array<char, Pinetime::Controllers::NotificationManager::MessageSize + 1> message {
"Low Battery\0Charge your watch to prevent data loss.\0"};
- notif.message = message;
+ notif.message = std::move(message);
notif.size = 53;
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
notificationManager.Push(std::move(notif));