summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-23 17:22:28 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-23 17:22:28 +0000
commit5d247b595848a30f7e645779e3edf697bdfc2b25 (patch)
treedb224b73fc9463d0a50f0b999e31e41c763204fd
parent168cbe5ffd9b34dc959eebd476b4e44741cd7e65 (diff)
fix clear bit
git-svn-id: https://svn.openpcd.org:2342/trunk@33 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/firmware/src/rc632.c2
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;
personal git repositories of Harald Welte. Your mileage may vary