removed magic number

This commit is contained in:
minacode 2022-12-07 13:57:22 +01:00 committed by JF
parent a82a34cd11
commit d62402cb3f

View file

@ -426,7 +426,7 @@ void SystemTask::Work() {
break;
case Messages::LowBattery: {
Pinetime::Controllers::NotificationManager::Notification notif;
std::array<char, 101> message {"Low Battery\0Charge your watch to prevent data loss.\0"};
std::array<char, Pinetime::Controllers::NotificationManager::MessageSize + 1> message {"Low Battery\0Charge your watch to prevent data loss.\0"};
notif.message = message;
notif.size = 53;
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;