machine/esp32c3: correct pin interrupt setup call that was overlooked from #5320

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2026-04-22 11:49:49 +02:00
committed by Ron Evans
parent cf5912412d
commit eafbe4ee69
+1 -1
View File
@@ -262,7 +262,7 @@ func setupPinInterrupt() error {
return interrupt.New(cpuInterruptFromPin, func(interrupt.Interrupt) {
status := esp.GPIO.STATUS.Get()
// Clear before processing so new edges during callbacks are not lost.
esp.GPIO.STATUS_W1TC.SetBits(status)
esp.GPIO.STATUS_W1TC.Set(status)
for i, mask := 0, uint32(1); i < maxPin; i, mask = i+1, mask<<1 {
if (status&mask) != 0 && pinCallbacks[i] != nil {
pinCallbacks[i](Pin(i))