fix #54; getting a float instead of integer
This commit is contained in:
parent
5a84e5fd0b
commit
c3c886e5c6
|
|
@ -188,7 +188,7 @@ def parse_mice(dstcall, body):
|
|||
hexdata, body = match[0]
|
||||
|
||||
hexdata = hexdata[1:] # remove telemtry flag
|
||||
channels = len(hexdata) / 2 # determine number of channels
|
||||
channels = int(len(hexdata) / 2) # determine number of channels
|
||||
hexdata = int(hexdata, 16) # convert hex to int
|
||||
|
||||
telemetry = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue