mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
get alc only if != 0.0
This commit is contained in:
parent
5970cdc2a8
commit
2772afc400
1 changed files with 4 additions and 1 deletions
|
@ -256,7 +256,10 @@ class radio:
|
|||
alc = data[0].decode("utf-8")
|
||||
if 'RPRT' not in alc:
|
||||
try:
|
||||
self.alc = float(alc)
|
||||
alc = float(alc)
|
||||
if alc != 0.0:
|
||||
self.alc = float(alc)
|
||||
|
||||
except ValueError:
|
||||
self.alc = str(alc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue