Skip to content

Commit

Permalink
fix #54; getting a float instead of integer
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Oct 8, 2019
1 parent 5a84e5f commit c3c886e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aprslib/parsing/mice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c3c886e

Please sign in to comment.