diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c index ca7e744529..b82a60f8f1 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c @@ -175,8 +175,6 @@ int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) { int timeout; int count; - if (length == 0) return 0; - /* // Wait until the bus is not busy anymore timeout = LONG_TIMEOUT;