mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
9e07655829
1 changed files with 2 additions and 2 deletions
|
@ -295,8 +295,8 @@ class radio:
|
||||||
|
|
||||||
def get_strength(self):
|
def get_strength(self):
|
||||||
try:
|
try:
|
||||||
strength_response = int(self.send_command('l STRENGTH'))
|
strength_response = self.send_command('l STRENGTH')
|
||||||
self.parameters['strength'] = strength_response if strength_response is not None else 'err'
|
self.parameters['strength'] = int(strength_response) if strength_response is not None else 'err'
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log.warning(f"Error getting strength: {e}")
|
self.log.warning(f"Error getting strength: {e}")
|
||||||
self.parameters['strength'] = 'err'
|
self.parameters['strength'] = 'err'
|
||||||
|
|
Loading…
Reference in a new issue