diff options
author | Niall Cooling <niallcooling@gmail.com> | 2021-03-16 12:43:50 +0000 |
---|---|---|
committer | Niall Cooling <niallcooling@gmail.com> | 2021-03-16 12:43:50 +0000 |
commit | 14bd790701f4e2f6d75ef8a1f52b9f38023c2dd9 (patch) | |
tree | c5e4248bfe058d485b229b7c62c1761bf37c5220 /src/systemtask | |
parent | ada942535718d48eec37cca4f50d678e7201dc67 (diff) |
Resolved C++14 Cmake build issues so correctly building to C99/C++14 standards
Diffstat (limited to 'src/systemtask')
-rw-r--r-- | src/systemtask/SystemTask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 6e6360a4..7f845c08 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -24,6 +24,8 @@ #include "drivers/Hrs3300.h" #include "main.h" +#include <memory> + using namespace Pinetime::System; void IdleTimerCallback(TimerHandle_t xTimer) { @@ -82,9 +84,9 @@ void SystemTask::Work() { motorController.Init(); - displayApp.reset(new Pinetime::Applications::DisplayApp(lcd, lvgl, touchPanel, batteryController, bleController, + displayApp = std::make_unique<Pinetime::Applications::DisplayApp>(lcd, lvgl, touchPanel, batteryController, bleController, dateTimeController, watchdogView, *this, notificationManager, - heartRateController)); + heartRateController); displayApp->Start(); batteryController.Update(); |