Mbed for VNG board

Fork of mbed-src by mbed official

Revision:
397:e6a80499f8a6
Parent:
324:406fd2029f23
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/i2c_api.c	Tue Nov 11 09:45:07 2014 +0000
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/i2c_api.c	Wed Nov 12 09:00:07 2014 +0000
@@ -97,7 +97,7 @@
     }
 
     // check if we received the ACK or not
-    return I2C_HAL_GetStatusFlag(i2c_addrs[obj->instance], kI2CReceivedNak) ? 0 : 1;
+    return I2C_HAL_GetStatusFlag(i2c_addrs[obj->instance], kI2CReceivedNak) ? 1 : 0;
 }
 
 // this function waits the end of a rx transfer and return the status of the transaction: