aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ble/weather/WeatherService.cpp2
-rw-r--r--src/components/ble/weather/WeatherService.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/ble/weather/WeatherService.cpp b/src/components/ble/weather/WeatherService.cpp
index d9e80be8..513bb2a1 100644
--- a/src/components/ble/weather/WeatherService.cpp
+++ b/src/components/ble/weather/WeatherService.cpp
@@ -26,7 +26,7 @@ int WeatherCallback(uint16_t /*connHandle*/, uint16_t /*attrHandle*/, struct ble
namespace Pinetime {
namespace Controllers {
- WeatherService::WeatherService(DateTime& dateTimeController) : dateTimeController(dateTimeController) {
+ WeatherService::WeatherService(const DateTime& dateTimeController) : dateTimeController(dateTimeController) {
nullHeader = &nullTimelineheader;
nullTimelineheader->timestamp = 0;
}
diff --git a/src/components/ble/weather/WeatherService.h b/src/components/ble/weather/WeatherService.h
index d1c347a9..609e8760 100644
--- a/src/components/ble/weather/WeatherService.h
+++ b/src/components/ble/weather/WeatherService.h
@@ -40,7 +40,7 @@ namespace Pinetime {
class WeatherService {
public:
- explicit WeatherService(DateTime& dateTimeController);
+ explicit WeatherService(const DateTime& dateTimeController);
void Init();
@@ -129,7 +129,7 @@ namespace Pinetime {
uint16_t eventHandle {};
- Pinetime::Controllers::DateTime& dateTimeController;
+ const Pinetime::Controllers::DateTime& dateTimeController;
std::vector<std::unique_ptr<WeatherData::TimelineHeader>> timeline;
std::unique_ptr<WeatherData::TimelineHeader> nullTimelineheader = std::make_unique<WeatherData::TimelineHeader>();