aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2015-07-29 16:54:22 +0200
committermarcoveeneman <marco-veeneman@hotmail.com>2015-07-29 16:54:22 +0200
commit94096f99728f583a49a3f190bee5064bba5514ef (patch)
tree44a674f8180df0b229c249c28b32b0280a970b83 /os/hal
parenteab925c4925e10684973c8e725ff66f5c76660de (diff)
parentca60a9cba242dcff3a04e517d6a07defea942b54 (diff)
downloadChibiOS-Contrib-94096f99728f583a49a3f190bee5064bba5514ef.tar.gz
ChibiOS-Contrib-94096f99728f583a49a3f190bee5064bba5514ef.tar.bz2
ChibiOS-Contrib-94096f99728f583a49a3f190bee5064bba5514ef.zip
Merge branch 'tiva_i2c_fix'
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/TIVA/LLD/i2c_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/TIVA/LLD/i2c_lld.c b/os/hal/ports/TIVA/LLD/i2c_lld.c
index 4019a3b..f4c555b 100644
--- a/os/hal/ports/TIVA/LLD/i2c_lld.c
+++ b/os/hal/ports/TIVA/LLD/i2c_lld.c
@@ -216,7 +216,7 @@ static void i2c_lld_serve_interrupt(I2CDriver *i2cp)
break;
}
case STATE_READ_NEXT: {
- if(i2cp->rxbytes == 0) {
+ if(i2cp->rxbytes == 2) {
i2cp->intstate = STATE_READ_FINAL;
}
*(i2cp->rxbuf) = dp->MDR;