weather: Add function for temperature in Fahrenheit

This commit is contained in:
FintasticMan 2023-06-29 01:30:44 +02:00 committed by JF
parent fc5424cb72
commit c04813b6d3

View File

@ -104,6 +104,10 @@ namespace Pinetime {
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() {