Fixed SyntaxWarning: "is" vs "=="
This commit is contained in:
parent
207253abc6
commit
dff6492a4b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ if args.zero:
|
||||||
# check if a new port has attached and return the index if it has
|
# check if a new port has attached and return the index if it has
|
||||||
port_index = new_port(initial_ports, reset_ports)
|
port_index = new_port(initial_ports, reset_ports)
|
||||||
# return the new port if detected, otherwise return passed port
|
# return the new port if detected, otherwise return passed port
|
||||||
if port_index is -1:
|
if port_index == -1:
|
||||||
bootloader_port = args.port[0]
|
bootloader_port = args.port[0]
|
||||||
else:
|
else:
|
||||||
bootloader_port = reset_ports[port_index]
|
bootloader_port = reset_ports[port_index]
|
||||||
|
|
Loading…
Reference in a new issue