From 2db920599eec192f794c96fcaeb7376ea3325adb Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Sat, 10 Feb 2024 13:24:46 -0500 Subject: SimpleWeatherService: Add forecast operator overrides (#2011) Any screen that relies on DirtyValue to display up-to-date forecast data would require the struct to provide an operator override for comparison. --- src/components/ble/SimpleWeatherService.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/ble/SimpleWeatherService.h') diff --git a/src/components/ble/SimpleWeatherService.h b/src/components/ble/SimpleWeatherService.h index cec2bb8b..4bbefcfc 100644 --- a/src/components/ble/SimpleWeatherService.h +++ b/src/components/ble/SimpleWeatherService.h @@ -96,9 +96,13 @@ namespace Pinetime { int16_t minTemperature; int16_t maxTemperature; Icons iconId; + + bool operator==(const Day& other) const; }; std::array days; + + bool operator==(const Forecast& other) const; }; std::optional Current() const; -- cgit v1.2.3-70-g09d2