diff --git a/sys/dev/bhnd/cores/chipc/chipc_gpiovar.h b/sys/dev/bhnd/cores/chipc/chipc_gpiovar.h index 664e021ea197..640fbc1560d4 100644 --- a/sys/dev/bhnd/cores/chipc/chipc_gpiovar.h +++ b/sys/dev/bhnd/cores/chipc/chipc_gpiovar.h @@ -111,7 +111,7 @@ struct chipc_gpio_update { if (_val) \ (_upd)->_reg.value |= (1 << (_pin)); \ else \ - (_upd)->_reg.value &= (1 << (_pin)); \ + (_upd)->_reg.value &= ~(1 << (_pin)); \ } while(0) /**