InfiniTime.git

commit c04813b6d303f4b341e5c7df885809913e83060a

Author: FintasticMan <finlay.neon.kid@gmail.com>

weather: Add function for temperature in Fahrenheit

 src/components/ble/SimpleWeatherService.h | 4 ++++


diff --git a/src/components/ble/SimpleWeatherService.h b/src/components/ble/SimpleWeatherService.h
index 9b3a0e9c6d852729511d633b93435ba2bd26cb39..cec2bb8bb78c95dfe97c995012d312e8faabcd8a 100644
--- a/src/components/ble/SimpleWeatherService.h
+++ b/src/components/ble/SimpleWeatherService.h
@@ -104,6 +104,10 @@
       std::optional<CurrentWeather> Current() const;
       std::optional<Forecast> GetForecast() const;
 
+      static int16_t CelsiusToFahrenheit(int16_t celsius) {
+        return celsius * 9 / 5 + 3200;
+      }
+
     private:
       // 00050000-78fc-48fe-8e23-433b3a1942d0
       static constexpr ble_uuid128_t BaseUuid() {