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:
- 162:e13f6fdb2ac4
- Parent:
- 160:d5399cc887bb
- Child:
- 165:e614a9f1c9e2
--- a/targets/TARGET_STM/i2c_api.c Thu Mar 30 13:45:57 2017 +0100
+++ b/targets/TARGET_STM/i2c_api.c Wed Apr 12 16:21:43 2017 +0100
@@ -904,7 +904,10 @@
#if DEVICE_I2CSLAVE
/* restore slave address */
- i2c_slave_address(obj, 0, address, 0);
+ if (address != 0) {
+ obj_s->slave = 1;
+ i2c_slave_address(obj, 0, address, 0);
+ }
#endif
/* Keep Set event flag */
