-update stop update battery when device running
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user