-update stop update battery when device running

This commit is contained in:
peterlu14
2023-11-21 16:28:40 +08:00
parent 7deb709946
commit 536bc23896
+2 -1
View File
@@ -494,7 +494,8 @@ class CC2650Device(Device):
@property
def battery(self) -> int:
self.update_battery_info()
if self._start_flag == False:
self.update_battery_info()
return self._battery
@property