diff options
-rw-r--r-- | openpcd/firmware/src/rc632.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpcd/firmware/src/rc632.c b/openpcd/firmware/src/rc632.c index 64ab91e..c8aa093 100644 --- a/openpcd/firmware/src/rc632.c +++ b/openpcd/firmware/src/rc632.c @@ -165,7 +165,7 @@ u_int8_t rc632_set_bits(u_int8_t reg, u_int8_t bits) u_int8_t rc632_clear_bits(u_int8_t reg, u_int8_t bits) { u_int8_t val = rc632_reg_read(reg); - val &= bits; + val &= ~bits; rc632_reg_write(reg, val); return val; |