fix for mbed lib issue 3 (i2c problem) see also https://mbed.org/users/mbed_official/code/mbed/issues/3 affected implementations: LPC812, LPC11U24, LPC1768, LPC2368, LPC4088

Fork of mbed-src by mbed official

Revision:
11:f9e72c209510
Parent:
10:3bc89ef62ce7
Child:
13:bd9ff402dd42
--- a/vendor/NXP/LPC1768/hal/i2c_api.c	Fri Jun 14 17:49:17 2013 +0100
+++ b/vendor/NXP/LPC1768/hal/i2c_api.c	Sun Jun 30 16:34:50 2013 +0000
@@ -266,7 +266,9 @@
         }
     }
     
-    i2c_clear_SI(obj);
+    // clearing the serial interrupt here might cause an unintended rewrite of the last byte
+    // see also issue report https://mbed.org/users/mbed_official/code/mbed/issues/1
+    // i2c_clear_SI(obj);
     
     // If not repeated start, send stop.
     if (stop) {