summaryrefslogtreecommitdiff
path: root/src/components/ble/ImmediateAlertService.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-06-06 13:56:03 (GMT)
committerJean-François Milants <jf@codingfield.com>2021-06-06 13:56:03 (GMT)
commit7f9cc51b050e1034b573e37484f7afe29c370d81 (patch)
treede5228132fb72e89bb5d999b74b40f4248d41022 /src/components/ble/ImmediateAlertService.cpp
parent79f0fcb07aa80eb70385223272e29f2ba5657bc8 (diff)
Initialize SystemTask, DisplayApp and HeartRateTask as global static variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
Diffstat (limited to 'src/components/ble/ImmediateAlertService.cpp')
-rw-r--r--src/components/ble/ImmediateAlertService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/ImmediateAlertService.cpp b/src/components/ble/ImmediateAlertService.cpp
index fd6430a..820d3b6 100644
--- a/src/components/ble/ImmediateAlertService.cpp
+++ b/src/components/ble/ImmediateAlertService.cpp
@@ -67,7 +67,7 @@ int ImmediateAlertService::OnAlertLevelChanged(uint16_t connectionHandle, uint16
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
notificationManager.Push(std::move(notif));
- systemTask.PushMessage(Pinetime::System::SystemTask::Messages::OnNewNotification);
+ systemTask.PushMessage(Pinetime::System::Messages::OnNewNotification);
}
}