Correct NO_TIMER index value for SAMD21.
We check validity by ensuring it's lower than the total number of timers. 0 is a terrible number for the NO_TIMER value because its valid even though it shouldn't be. Fixes https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO/issues/29
This commit is contained in:
parent
b64d568267
commit
c37ade9aeb
@ -57,7 +57,7 @@
|
||||
.wave_output = p_wave_output \
|
||||
}
|
||||
|
||||
#define NO_TIMER TCC(0, 0)
|
||||
#define NO_TIMER TCC(0xff, 0)
|
||||
|
||||
#define TOUCH(y_line) \
|
||||
.has_touch = true, \
|
||||
|
Loading…
Reference in New Issue
Block a user