daemon: fixed issue with bad value check for generating sdt movement
This commit is contained in:
parent
b2626b8d0e
commit
49659976d3
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ class Sdt:
|
|||
if all([lat is not None, lon is not None, alt is not None]):
|
||||
pos = f"pos {lon:.6f},{lat:.6f},{alt:.6f}"
|
||||
self.cmd(f"node {node.id} {pos}")
|
||||
elif node_data.message_type == 0:
|
||||
elif node_data.message_type == MessageFlags.NONE:
|
||||
lat, lon, alt = self.session.location.getgeo(x, y, 0)
|
||||
pos = f"pos {lon:.6f},{lat:.6f},{alt:.6f}"
|
||||
self.cmd(f"node {node.id} {pos}")
|
||||
|
|
Loading…
Reference in a new issue