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: Freedman_v2 Nucleo_i2c_OLED_BME280_copy
Fork of mbed-src by
Diff: common/I2C.cpp
- Revision:
- 563:536c9fb088a0
- Parent:
- 525:c320967f86b9
--- a/common/I2C.cpp Tue Jun 09 15:30:08 2015 +0100
+++ b/common/I2C.cpp Wed Jun 10 10:00:08 2015 +0100
@@ -92,7 +92,7 @@
#if DEVICE_I2C_ASYNCH
-int I2C::transfer(int address, char *tx_buffer, int tx_length, char *rx_buffer, int rx_length, const event_callback_t& callback, int event, bool repeated)
+int I2C::transfer(int address, const char *tx_buffer, int tx_length, char *rx_buffer, int rx_length, const event_callback_t& callback, int event, bool repeated)
{
if (i2c_active(&_i2c)) {
return -1; // transaction ongoing
