hopefully fixed crash on notification
This commit is contained in:
parent
c02b505998
commit
dbbbbfd1ac
|
@ -428,7 +428,7 @@ void SystemTask::Work() {
|
||||||
Pinetime::Controllers::NotificationManager::Notification notif;
|
Pinetime::Controllers::NotificationManager::Notification notif;
|
||||||
std::array<char, Pinetime::Controllers::NotificationManager::MessageSize + 1> message {
|
std::array<char, Pinetime::Controllers::NotificationManager::MessageSize + 1> message {
|
||||||
"Low Battery\0Charge your watch to prevent data loss.\0"};
|
"Low Battery\0Charge your watch to prevent data loss.\0"};
|
||||||
notif.message = message;
|
notif.message = std::move(message);
|
||||||
notif.size = 53;
|
notif.size = 53;
|
||||||
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
||||||
notificationManager.Push(std::move(notif));
|
notificationManager.Push(std::move(notif));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user