From a0a6745b35db77694daed94aa9f6a5dd279f9ded Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 22 Oct 2023 21:18:37 +0200 Subject: [PATCH] Fixed marker init --- sbapp/main.py | 2 +- sbapp/sideband/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index 52bed1b..b6a4e29 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -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 diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 05b2fc9..bcbc52b 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -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: