From b315d1113f1724530dcc54f36f35574279ba3318 Mon Sep 17 00:00:00 2001 From: Kevin Walton Date: Fri, 9 Apr 2021 21:14:39 +0100 Subject: [PATCH] Error in Habhub checksum format breaks Habhub upload Error in Habhub checksum breaks Habhub upload if the first character in the checksum is a Zero - so forced to always be 2 characters. I found the bug live this evening, fixed, and confirmed working now. --- telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemetry.py b/telemetry.py index f07b0eb..1a79321 100644 --- a/telemetry.py +++ b/telemetry.py @@ -574,7 +574,7 @@ def process_telemetry(spots, balloons, habhub_callsign, push_habhub, push_aprs, while i < len(telestr): checksum = checksum ^ ord(telestr[i]) i+=1 - telestr = "$$" + telestr + "*" + '{:x}'.format(int(checksum)) + telestr = "$$" + telestr + "*" + '{:02x}'.format(int(checksum)) logging.info("Telemetry: %s", telestr) # Check if string has been uploaded before and if not then add and upload