Tentative KL25Z I2C HAL fix

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
bogdanm
Date:
Thu Aug 08 08:13:33 2013 +0000
Parent:
16:caa6d6a94ad9
Commit message:
Fixed counter type in i2c_read

Changed in this revision

targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c Show annotated file Show diff for this revision Revisions of this file
diff -r caa6d6a94ad9 -r 2d7fc2e3aaad targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c
--- a/targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c	Tue Aug 06 19:30:52 2013 +0000
+++ b/targets/hal/TARGET_Freescale/TARGET_KL25Z/i2c_api.c	Thu Aug 08 08:13:33 2013 +0000
@@ -226,7 +226,7 @@
 }
 
 int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) {
-    uint8_t count;
+    int count;
     char dummy_read, *ptr;
 
     if (i2c_start(obj)) {