aboutsummaryrefslogtreecommitdiff
path: root/bin/ard-reset-arduino
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2020-08-04 23:28:36 +0100
committerSimon John <git@the-jedi.co.uk>2020-08-04 23:28:36 +0100
commitdff6492a4b07b4db53da23d7159c81697d12b47e (patch)
treee9c8649ccd7430f4bdf347e244fd6997c2a340cc /bin/ard-reset-arduino
parent207253abc6ec81112abf0a64a8bf68e227528d64 (diff)
Fixed SyntaxWarning: "is" vs "=="
Diffstat (limited to 'bin/ard-reset-arduino')
-rwxr-xr-xbin/ard-reset-arduino2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ard-reset-arduino b/bin/ard-reset-arduino
index f03bf66..51b4577 100755
--- a/bin/ard-reset-arduino
+++ b/bin/ard-reset-arduino
@@ -89,7 +89,7 @@ if args.zero:
# check if a new port has attached and return the index if it has
port_index = new_port(initial_ports, reset_ports)
# return the new port if detected, otherwise return passed port
- if port_index is -1:
+ if port_index == -1:
bootloader_port = args.port[0]
else:
bootloader_port = reset_ports[port_index]