diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-27 00:31:33 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-27 00:31:33 +0000 |
| commit | 1092268614ca6f6a63aa41152362861e7b7421a9 (patch) | |
| tree | 524e3a4de2774d419150ca52c28b3040ab7e8ab7 | |
| parent | 9614612830f05be75c82df1bb226c9375ae8c466 (diff) | |
| download | rockbox-1092268614ca6f6a63aa41152362861e7b7421a9.zip rockbox-1092268614ca6f6a63aa41152362861e7b7421a9.tar.gz rockbox-1092268614ca6f6a63aa41152362861e7b7421a9.tar.bz2 rockbox-1092268614ca6f6a63aa41152362861e7b7421a9.tar.xz | |
Woops. Forgot to remove the param to fmradio_i2c_ack. It was always called with 0 for a parameter anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13724 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/drivers/fmradio_i2c.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/firmware/drivers/fmradio_i2c.c b/firmware/drivers/fmradio_i2c.c index b17a979..1c9bc30 100644 --- a/firmware/drivers/fmradio_i2c.c +++ b/firmware/drivers/fmradio_i2c.c @@ -296,7 +296,7 @@ static void fmradio_i2c_stop(void) } -static void fmradio_i2c_ack(int bit) +static void fmradio_i2c_ack(void) { /* Here's the deal. The slave is slow, and sometimes needs to wait before it can receive the acknowledge. Therefore it forces the clock @@ -304,14 +304,7 @@ static void fmradio_i2c_ack(int bit) high before we release the ack. */ SCL_LO; /* Set the clock low */ - if ( bit ) - { - SDA_HI; - } - else - { - SDA_LO; - } + SDA_LO; SCL_INPUT; /* Set the clock to input */ while(!SCL) /* and wait for the slave to release it */ @@ -424,7 +417,7 @@ int fmradio_i2c_read(int address, unsigned char* buf, int count) { *buf++ = fmradio_i2c_inb(); if (i != 1) - fmradio_i2c_ack(ack); + fmradio_i2c_ack(); } } else |