Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@xandyxor

Description

@xandyxor

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions