From 7a3bd089c471693d20895f3e4d12425310165438 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Mon, 5 Aug 2019 16:25:46 +0200 Subject: [PATCH] update wind null return --- pyModeS/decoder/bds/bds44.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyModeS/decoder/bds/bds44.py b/pyModeS/decoder/bds/bds44.py index e07cf7b..4c3fc35 100644 --- a/pyModeS/decoder/bds/bds44.py +++ b/pyModeS/decoder/bds/bds44.py @@ -62,8 +62,8 @@ def is44(msg): if bin2int(d[0:4]) > 4: return False - vw = wind44(msg) - if vw is not None and vw[0] > 250: + vw, dw = wind44(msg) + if vw is not None and vw > 250: return False temp, temp2 = temp44(msg) @@ -87,7 +87,7 @@ def wind44(msg): status = int(d[4]) if not status: - return None + return None, None speed = bin2int(d[5:14]) # knots direction = bin2int(d[14:23]) * 180.0 / 256.0 # degree