Skip to content

Commit

Permalink
fix: update casio watchface to use new SimpleWeatherService attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghoelian committed Nov 21, 2024
1 parent 1bade4b commit 76da8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/WatchFaceCasioStyleG7710.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ void WatchFaceCasioStyleG7710::Refresh() {
auto optCurrentWeather = currentWeather.Get();

if (optCurrentWeather) {
int16_t temp = optCurrentWeather->temperature;
int16_t temp = optCurrentWeather->temperature.Celsius();
char tempUnit = 'C';

if (settingsController.GetWeatherFormat() == Controllers::Settings::WeatherFormat::Imperial) {
temp = Controllers::SimpleWeatherService::CelsiusToFahrenheit(temp);
temp = optCurrentWeather->temperature.Fahrenheit();
tempUnit = 'F';
}

Expand Down

0 comments on commit 76da8d5

Please sign in to comment.