Merge branch 'tiva_i2c_fix'

This commit is contained in:
marcoveeneman 2015-07-29 16:54:22 +02:00
commit 94096f9972
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ static void i2c_lld_serve_interrupt(I2CDriver *i2cp)
break; break;
} }
case STATE_READ_NEXT: { case STATE_READ_NEXT: {
if(i2cp->rxbytes == 0) { if(i2cp->rxbytes == 2) {
i2cp->intstate = STATE_READ_FINAL; i2cp->intstate = STATE_READ_FINAL;
} }
*(i2cp->rxbuf) = dp->MDR; *(i2cp->rxbuf) = dp->MDR;