From 0b3f2411879f26127bf9bc128fafca6a79c6b932 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 20 Mar 2008 16:45:44 +0000 Subject: Don't slow down I2C more than necessary when clock-stretching (rather old bug...) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16720 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/drivers/i2c.c b/firmware/drivers/i2c.c index fe4114e34d..5cfa3dca97 100644 --- a/firmware/drivers/i2c.c +++ b/firmware/drivers/i2c.c @@ -121,7 +121,7 @@ void i2c_ack(int bit) SCL_INPUT; /* Set the clock to input */ while(!SCL) /* and wait for the MAS to release it */ - sleep(1); + sleep(0); DELAY; SCL_OUTPUT; @@ -143,7 +143,7 @@ int i2c_getack(void) SDA_INPUT; /* And set to input */ SCL_INPUT; /* Set the clock to input */ while(!SCL) /* and wait for the MAS to release it */ - sleep(1); + sleep(0); if (SDA) /* ack failed */ -- cgit v1.2.3