Mbed for VNG board
Fork of mbed-src by
Revision 397:e6a80499f8a6, committed 2014-11-12
- Comitter:
- mbed_official
- Date:
- Wed Nov 12 09:00:07 2014 +0000
- Parent:
- 396:16d0d69d12f5
- Child:
- 398:7a7127adb6e8
- Commit message:
- Synchronized with git revision 6fd59778d63339412e56341e5ae1a8823a90f4f3
Full URL: https://github.com/mbedmicro/mbed/commit/6fd59778d63339412e56341e5ae1a8823a90f4f3/
Targets: KSDK - Fix ACK/NACK received inverted (issue #661)
Changed in this revision
targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/i2c_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- 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: