Use a proper master I2C driver.

This commit is contained in:
Jonathan Naylor
2020-11-24 10:46:25 +00:00
parent 5e8e0577da
commit df749d3286
9 changed files with 225 additions and 219 deletions
+1 -1
View File
@@ -1313,7 +1313,7 @@ void CSerialPort::processMessage(uint8_t type, const uint8_t* buffer, uint16_t l
#if defined(I2C_REPEATER)
case MMDVM_I2C_DATA: {
err = i2C1.write(buffer, length);
err = i2C1.write(buffer[0U], buffer + 1U, length - 1U);
if (err != 0U) {
DEBUG2("Received invalid I2C data", err);
sendNAK(err);