mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 23:21:53 +02:00
fix weather display
This commit is contained in:
parent
a60b65abb6
commit
8138097e89
|
@ -429,10 +429,11 @@ void WatchFaceStarTrek::Refresh() {
|
|||
|
||||
if (settingsController.GetStarTrekWeather()) {
|
||||
currentWeather = weatherService.Current();
|
||||
bool isUpdated = currentWeather.IsUpdated();
|
||||
auto optCurrentWeather = currentWeather.Get();
|
||||
|
||||
if (optCurrentWeather) {
|
||||
if (weatherNeedsRefresh || currentWeather.IsUpdated()) {
|
||||
if (weatherNeedsRefresh || isUpdated) {
|
||||
int16_t temp = optCurrentWeather->temperature;
|
||||
if (settingsController.GetWeatherFormat() == Controllers::Settings::WeatherFormat::Imperial) {
|
||||
temp = Controllers::SimpleWeatherService::CelsiusToFahrenheit(temp);
|
||||
|
|
Loading…
Reference in a new issue