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
Diff: cpp/Timer.cpp
- Revision:
- 8:4e25b8576136
- Parent:
- 2:143cac498751
--- a/cpp/Timer.cpp Wed Apr 24 15:11:33 2013 +0000 +++ b/cpp/Timer.cpp Thu May 30 16:59:31 2013 +0100 @@ -37,7 +37,7 @@ } float Timer::read() { - return (float)read_us() / 1000000.0; + return (float)read_us() / 1000000.0f; } int Timer::read_ms() {