fix for mbed lib issue 1 (i2c problem)

see also https://mbed.org/users/mbed_official/code/mbed/issues/1