From c3c886e5c658b999abad947ab8891df1af9d2e7f Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 8 Oct 2019 19:37:32 +0100 Subject: [PATCH] fix #54; getting a float instead of integer --- aprslib/parsing/mice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aprslib/parsing/mice.py b/aprslib/parsing/mice.py index b79231c..36720d1 100644 --- a/aprslib/parsing/mice.py +++ b/aprslib/parsing/mice.py @@ -187,9 +187,9 @@ def parse_mice(dstcall, body): if match: hexdata, body = match[0] - hexdata = hexdata[1:] # remove telemtry flag - channels = len(hexdata) / 2 # determine number of channels - hexdata = int(hexdata, 16) # convert hex to int + hexdata = hexdata[1:] # remove telemtry flag + channels = int(len(hexdata) / 2) # determine number of channels + hexdata = int(hexdata, 16) # convert hex to int telemetry = [] for i in range(channels):