From 71234d9b9d9daecd01680d4a5615f6d1228ce999 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 20 Oct 2023 23:40:51 +0200 Subject: [PATCH] Map marker drawing --- sbapp/main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sbapp/main.py b/sbapp/main.py index 86fc713..0a5408c 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -3081,10 +3081,20 @@ class SidebandApp(MDApp): earliest = time.time() - self.sideband.config["map_history_limit"] telemetry_entries = self.sideband.list_telemetry(after=earliest) changes = False + + # Add own marker if available + for telemetry_source in telemetry_entries: skip = False - if telemetry_source in self.map_markers: + # TODO: Remove + RNS.log("Processing telemetry for "+RNS.prettyhexrep(telemetry_source), RNS.LOG_WARNING) + + if telemetry_source == self.sideband.lxmf_destination.hash: + # TODO: Remove + RNS.log("Skipping own telemetry", RNS.LOG_WARNING) + skip = True + elif telemetry_source in self.map_markers: marker = self.map_markers[telemetry_source] newest_timestamp = telemetry_entries[telemetry_source][0][0] if newest_timestamp <= marker.latest_timestamp: