From d22405bb47b5472d1e781b285bacaffc9f67a477 Mon Sep 17 00:00:00 2001 From: Alek Rudnik Date: Wed, 24 Nov 2021 08:38:21 +0100 Subject: [PATCH] [EGD-7860] Fix building of application antenna It was not compiling before --- .../application-antenna/ApplicationAntenna.cpp | 5 ++--- .../application-antenna/ApplicationAntenna.hpp | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/module-apps/application-antenna/ApplicationAntenna.cpp b/module-apps/application-antenna/ApplicationAntenna.cpp index 4d73203f4a243b3a8bda2c5371aa2ffc0a63f528..31e17dda8a7f753c221fa1f62a7b8057d60f9df9 100644 --- a/module-apps/application-antenna/ApplicationAntenna.cpp +++ b/module-apps/application-antenna/ApplicationAntenna.cpp @@ -37,10 +37,9 @@ namespace app ApplicationAntenna::ApplicationAntenna(std::string name, std::string parent, - sys::phone_modes::PhoneMode phoneMode, - sys::bluetooth::BluetoothMode bluetoothMode, + StatusIndicators statusIndicators, StartInBackground startInBackground) - : Application(name, parent, phoneMode, bluetoothMode, startInBackground, antennaApplicationStackSize) + : Application(name, parent, statusIndicators, startInBackground, antennaApplicationStackSize) { bus.channels.push_back(sys::BusChannel::AntennaNotifications); appTimer = sys::TimerFactory::createPeriodicTimer( diff --git a/module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp b/module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp index 45b31f942112b02f115b279078259de17dd850fb..614caf0d65a205f22e37ead5ec4cf4719e148c70 100644 --- a/module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp +++ b/module-apps/application-antenna/include/application-antenna/ApplicationAntenna.hpp @@ -3,8 +3,8 @@ #pragma once +#include "Application.hpp" #include -#include #include #include @@ -38,11 +38,10 @@ namespace app uint32_t lastFreq = 0; public: - ApplicationAntenna(std::string name = name_antenna, - std::string parent = {}, - sys::phone_modes::PhoneMode phoneMode = sys::phone_modes::PhoneMode::Connected, - sys::bluetooth::BluetoothMode bluetoothMode = sys::bluetooth::BluetoothMode::Disabled, - StartInBackground startInBackground = {false}); + ApplicationAntenna(std::string name = name_antenna, + std::string parent = {}, + StatusIndicators statusIndicators = StatusIndicators{}, + StartInBackground startInBackground = {false}); virtual ~ApplicationAntenna(); sys::MessagePointer DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp) override;