Skip to content

Commit eafbe4e

Browse files
committed
machine/esp32c3: correct pin interrupt setup call that was overlooked from #5320
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent cf59124 commit eafbe4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/machine/machine_esp32c3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func setupPinInterrupt() error {
262262
return interrupt.New(cpuInterruptFromPin, func(interrupt.Interrupt) {
263263
status := esp.GPIO.STATUS.Get()
264264
// Clear before processing so new edges during callbacks are not lost.
265-
esp.GPIO.STATUS_W1TC.SetBits(status)
265+
esp.GPIO.STATUS_W1TC.Set(status)
266266
for i, mask := 0, uint32(1); i < maxPin; i, mask = i+1, mask<<1 {
267267
if (status&mask) != 0 && pinCallbacks[i] != nil {
268268
pinCallbacks[i](Pin(i))

0 commit comments

Comments
 (0)