From a78a7738861d15d90949f215c7244f0c8b615cc6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 30 Oct 2023 03:19:41 +0100 Subject: [PATCH] Cleanup --- sbapp/main.py | 2 ++ sbapp/sideband/core.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sbapp/main.py b/sbapp/main.py index 1ecb11b..8160aac 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -3655,6 +3655,8 @@ class SidebandApp(MDApp): else: if sender != None and hasattr(sender, "source_dest") and sender.source_dest != None: telemetry_source = sender.source_dest + else: + telemetry_source = None if telemetry_source != None: if self.object_details_screen == None: diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index e19adc8..0bac03c 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -125,7 +125,7 @@ class SidebandCore(): self.pending_telemetry_send_maxtries = 2 self.telemetry_send_blocked_until = 0 self.pending_telemetry_request = False - self.telemetry_request_max_history = 3*24*60*60 + self.telemetry_request_max_history = 7*24*60*60 self.state_db = {} self.rpc_connection = None