diff options
Diffstat (limited to 'firmware/drivers/i2c.c')
-rw-r--r-- | firmware/drivers/i2c.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/drivers/i2c.c b/firmware/drivers/i2c.c index 71cb9cf8b0..2b439c23ad 100644 --- a/firmware/drivers/i2c.c +++ b/firmware/drivers/i2c.c | |||
@@ -145,8 +145,7 @@ void i2c_ack(int bit) | |||
145 | 145 | ||
146 | SCL_INPUT; /* Set the clock to input */ | 146 | SCL_INPUT; /* Set the clock to input */ |
147 | while(!SCL) /* and wait for the MAS to release it */ | 147 | while(!SCL) /* and wait for the MAS to release it */ |
148 | sleep_thread(); | 148 | sleep_thread(1); |
149 | wake_up_thread(); | ||
150 | 149 | ||
151 | DELAY; | 150 | DELAY; |
152 | SCL_OUTPUT; | 151 | SCL_OUTPUT; |
@@ -168,8 +167,7 @@ int i2c_getack(void) | |||
168 | SDA_INPUT; /* And set to input */ | 167 | SDA_INPUT; /* And set to input */ |
169 | SCL_INPUT; /* Set the clock to input */ | 168 | SCL_INPUT; /* Set the clock to input */ |
170 | while(!SCL) /* and wait for the MAS to release it */ | 169 | while(!SCL) /* and wait for the MAS to release it */ |
171 | sleep_thread(); | 170 | sleep_thread(1); |
172 | wake_up_thread(); | ||
173 | 171 | ||
174 | if (SDA) | 172 | if (SDA) |
175 | /* ack failed */ | 173 | /* ack failed */ |