hopefully fixed crash on notification

This commit is contained in:
minacode 2022-12-20 21:56:06 +01:00 committed by JF
parent c02b505998
commit dbbbbfd1ac

View File

@ -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));