Sfoglia il codice sorgente

remove useless checks

Sven Czarnian 3 anni fa
parent
commit
11eae85e35
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      aman/com/Weather.py

+ 0 - 4
aman/com/Weather.py

@@ -60,10 +60,6 @@ class Weather(Thread):
                 time.sleep(1)
                 continue
 
-            # calculate the theoretical next try for an update
-            if None != self.lastUpdateTried:
-                earliestUpdate = self.lastUpdateTried + datetime.timedelta(minutes=2)
-
             if None == self.lastUpdateTried or self.lastUpdateTried <= now:
                 if True == self.provider.receiveWindData():
                     self.nextUpdate = self.provider.updateTime