mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
ImmediateAlertService: fix possible bug
This commit is contained in:
parent
eeb0d23816
commit
565ed00cee
|
@ -63,7 +63,8 @@ int ImmediateAlertService::OnAlertLevelChanged(uint16_t attributeHandle, ble_gat
|
||||||
auto* alertString = ToString(alertLevel);
|
auto* alertString = ToString(alertLevel);
|
||||||
|
|
||||||
NotificationManager::Notification notif;
|
NotificationManager::Notification notif;
|
||||||
std::memcpy(notif.message.data(), alertString, strlen(alertString));
|
std::memcpy(notif.message.data(), alertString, strlen(alertString) + 1);
|
||||||
|
notif.size = strlen(alertString) + 1;
|
||||||
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 a new issue