Fix crash on 100%SoC
This commit is contained in:
parent
f6de481fa1
commit
94d0308da5
|
@ -183,8 +183,8 @@ class DbusBatteryService:
|
|||
self.dailyResetDone = datetime.now().day
|
||||
|
||||
def _update(self):
|
||||
time = datetime.now()
|
||||
self.lastUpdated = time.timestamp()
|
||||
timeLastUpdate = datetime.now()
|
||||
self.lastUpdated = timeLastUpdate.timestamp()
|
||||
|
||||
## Monitor communication ##
|
||||
if (self._bat.updated != -1 and self.lastUpdated == 0) or ((self.lastUpdated - self._bat.updated) < 10):
|
||||
|
|
Loading…
Reference in New Issue