Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
Diff: targets/TARGET_STM/i2c_api.c
- Revision:
- 170:19eb464bc2be
- Parent:
- 165:e614a9f1c9e2
diff -r e3b6fe271b81 -r 19eb464bc2be targets/TARGET_STM/i2c_api.c
--- a/targets/TARGET_STM/i2c_api.c Wed Jul 19 17:31:21 2017 +0100
+++ b/targets/TARGET_STM/i2c_api.c Thu Aug 03 13:13:39 2017 +0100
@@ -743,13 +743,6 @@
int count = I2C_ERROR_BUS_BUSY, ret = 0;
uint32_t timeout = 0;
- if((length == 0) || (data == 0)) {
- if(HAL_I2C_IsDeviceReady(handle, address, 1, 10) == HAL_OK)
- return 0;
- else
- return I2C_ERROR_BUS_BUSY;
- }
-
if ((obj_s->XferOperation == I2C_FIRST_AND_LAST_FRAME) ||
(obj_s->XferOperation == I2C_LAST_FRAME)) {
if (stop)
@@ -802,13 +795,6 @@
int count = I2C_ERROR_BUS_BUSY, ret = 0;
uint32_t timeout = 0;
- if((length == 0) || (data == 0)) {
- if(HAL_I2C_IsDeviceReady(handle, address, 1, 10) == HAL_OK)
- return 0;
- else
- return I2C_ERROR_BUS_BUSY;
- }
-
if ((obj_s->XferOperation == I2C_FIRST_AND_LAST_FRAME) ||
(obj_s->XferOperation == I2C_LAST_FRAME)) {
if (stop)
