From 19b36f0d2a76c1c630fcc32411a4da50f2372ec8 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sat, 9 Mar 2019 21:25:19 +1030 Subject: [PATCH] More python3 fixes. --- auto_rx/autorx/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_rx/autorx/decode.py b/auto_rx/autorx/decode.py index 03b6b81..bc682d4 100644 --- a/auto_rx/autorx/decode.py +++ b/auto_rx/autorx/decode.py @@ -357,7 +357,7 @@ class SondeDecoder(object): else: try: - _telemetry = json.loads(data) + _telemetry = json.loads(data.decode('ascii')) except Exception as e: self.log_debug("Line could not be parsed as JSON - %s" % str(e)) return False