Skip to content

Commit 260c881

Browse files
author
Kevin J Walters
committed
pylint 1.9.2 picks up on a variable used in the for loop used just afterwards, adjusting to a fixed (also valid) value.
1 parent 4411a25 commit 260c881

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CLUE_Metal_Detector/clue-metal-detector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# clue-metal-detector v1.4
1+
# clue-metal-detector v1.5
22
# A simple metal detector using a minimum number of external components
33

44
# Tested with an Adafruit CLUE (Alpha) and CircuitPython 5.2.0
@@ -8,7 +8,7 @@
88
# CLUE: Pad P0 is an output and pad P1 is an input
99
# CPB: Pad/STEMMA A1 is an output and Pad/STEMMA A2 is an input
1010

11-
# copy this file to CLUE board as code.py
11+
# copy this file to CLUE/CPB board as code.py
1212

1313
# MIT License
1414

@@ -404,7 +404,7 @@ def make_sample_list(levels=10,
404404
for idx in range(len(waveforms)):
405405
start_beep(440, waveforms, idx)
406406
time.sleep(0.1)
407-
start_beep(0, waveforms, idx) # This silences it
407+
start_beep(0, waveforms, 0) # This silences it
408408

409409
# See https://forums.adafruit.com/viewtopic.php?f=60&t=164758 for
410410
# a comparison and performance analysis of alternate techniques for this

0 commit comments

Comments
 (0)