mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Revision:
182:242346c42295
Parent:
117:e0a7df0a9a56
Child:
227:7bd0639b8911
--- a/targets/hal/TARGET_NXP/TARGET_LPC15XX/i2c_api.c	Wed May 07 13:15:08 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC15XX/i2c_api.c	Wed May 07 13:30:07 2014 +0100
@@ -138,7 +138,7 @@
         LPC_I2C0->MSTCTL = (1 << 0);
         data[count] = (LPC_I2C0->MSTDAT & 0xFF);
         status = ((LPC_I2C0->STAT >> 1) & (0x07));
-        if (status != 0x00) {
+        if (status != 0x01) {
             i2c_stop(obj);
             return count;
         }