jrowberg / bglib

BGLib implementation for Bluegiga BLE Bluetooth Smart modules
Other
240 stars 170 forks source link

TypeError: 'float' object cannot be interpreted as an integer #60

Open xandyxor opened 3 years ago

xandyxor commented 3 years ago

File "bled112_scanner.py", line 372, in bgapi_parse for i in range((len(this_field) - 1) / 2): TypeError: 'float' object cannot be interpreted as an integer

1/2 0 #Python2 0.5 #Python3

so for i in range((len(this_field) - 1) / 2): Should be changed to for i in range((len(this_field) - 1) // 2):