diff --git a/src/machine/machine_atsamd21.go b/src/machine/machine_atsamd21.go index 36967a09..916802e8 100644 --- a/src/machine/machine_atsamd21.go +++ b/src/machine/machine_atsamd21.go @@ -240,7 +240,7 @@ func (p Pin) SetInterrupt(change PinChange, callback func(Pin)) error { addr = &sam.EIC.CONFIG1 } pos := (extint % 8) * 4 // bit position in register - addr.Set((addr.Get() &^ (0xf << pos)) | uint32(change)<