From 6373ef00ea64d88bdef2a7f957c72fc03e605970 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 22 Apr 2026 11:49:49 +0200 Subject: [PATCH] machine/esp32c3: correct pin interrupt setup call that was overlooked from #5320 Signed-off-by: deadprogram --- src/machine/machine_esp32c3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/machine_esp32c3.go b/src/machine/machine_esp32c3.go index 6d05e493e9..2fd1746b33 100644 --- a/src/machine/machine_esp32c3.go +++ b/src/machine/machine_esp32c3.go @@ -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))