Fixed marker init
This commit is contained in:
parent
f5d1dc6e05
commit
a0a6745b35
|
@ -3303,7 +3303,7 @@ class SidebandApp(MDApp):
|
|||
t = Telemeter.from_packed(telemetry_data)
|
||||
if t != None:
|
||||
telemetry = t.read_all()
|
||||
if "location" in telemetry and telemetry["location"]["latitude"] != None and telemetry["location"]["longtitude"] != None:
|
||||
if "location" in telemetry and telemetry["location"] != None and telemetry["location"]["latitude"] != None and telemetry["location"]["longtitude"] != None:
|
||||
latest_viewable = telemetry
|
||||
break
|
||||
|
||||
|
|
|
@ -763,7 +763,7 @@ class SidebandCore():
|
|||
for pt in pts:
|
||||
try:
|
||||
t = Telemeter.from_packed(pt[1]).read_all()
|
||||
if "location" in t:
|
||||
if "location" in t and t["location"] != None:
|
||||
l = t["location"]
|
||||
if "latitude" in l and "longtitude" in l:
|
||||
if l["latitude"] != None and l["longtitude"] != None:
|
||||
|
|
Loading…
Reference in New Issue