Skip to content

Commit 3aff0e7

Browse files
committed
Update I2CSlave.cpp
Removed comments again regarding need for dedicated i2c_slave_byte_read() and i2c_slave_byte_read(). This issue is captured in "I2c - slave should have own write/read functions (#896)"
1 parent 1e09830 commit 3aff0e7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libraries/mbed/common/I2CSlave.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ int I2CSlave::read(char *data, int length) {
4343
}
4444

4545
int I2CSlave::read(void) {
46-
// The dedicated I2C Slave byte read and byte write functions need to be called
47-
// from 'common' mbed I2CSlave API for devices that have separate Master and
48-
// Slave engines such as the lpc812 and lpc1549.
49-
// return i2c_slave_byte_read(&_i2c, 0);
5046
return i2c_byte_read(&_i2c, 0);
5147
}
5248

@@ -55,11 +51,6 @@ int I2CSlave::write(const char *data, int length) {
5551
}
5652

5753
int I2CSlave::write(int data) {
58-
// The dedicated I2C Slave byte read and byte write functions need to be called
59-
// from 'common' mbed I2CSlave API for devices that have separate Master and
60-
// Slave engines such as the lpc812 and lpc1549.
61-
//
62-
// return i2c_slave_byte_write(&_i2c, data);
6354
return i2c_byte_write(&_i2c, data);
6455
}
6556

0 commit comments

Comments
 (0)