Back off updating the weather if wifi doesn't work at first

This commit is contained in:
leblane 2023-06-15 19:45:36 +03:00
parent 268fd9986d
commit f28480291e

View file

@ -220,7 +220,7 @@ void WatchFacePages::Weather::Resync()
return; return;
} }
if (m_lastSyncTime > 0 && currentTime - m_lastSyncAttemptTime < WEATHER_UPDATE_BACKOFF) { if (currentTime - m_lastSyncAttemptTime < WEATHER_UPDATE_BACKOFF) {
return; return;
} }