We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de14cae commit 46f0ce2Copy full SHA for 46f0ce2
main.c
@@ -331,24 +331,24 @@ static void handle_i2c(i2c_state_struct *i2c) {
331
}
332
333
334
- i2c->state = state;
335
- i2c->phase = phase;
336
- i2c->work_byte = work_byte;
337
- i2c->work_bit = work_bit;
338
-
339
if (0) {
340
handle_nak:
341
SHARED->i2c.flags = 0x4e55;
342
- i2c->state = I2C_STATE_IDLE;
+ state = I2C_STATE_IDLE;
343
344
345
346
handle_timeout:
347
if (--i2c->timeout == 0) {
348
SHARED->i2c.flags = 0x5455;
349
350
351
+
+ i2c->state = state;
+ i2c->phase = phase;
+ i2c->work_byte = work_byte;
+ i2c->work_bit = work_bit;
352
353
354
void main() {
0 commit comments