From dbbbbfd1ac89607b5194fa04c15f6b4f84d064bf Mon Sep 17 00:00:00 2001 From: minacode Date: Tue, 20 Dec 2022 21:56:06 +0100 Subject: hopefully fixed crash on notification --- src/systemtask/SystemTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 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)); -- cgit v1.2.3