From 5d247b595848a30f7e645779e3edf697bdfc2b25 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Sun, 23 Jul 2006 17:22:28 +0000 Subject: fix clear bit git-svn-id: https://svn.openpcd.org:2342/trunk@33 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/rc632.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3