We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ad975 commit a12b2deCopy full SHA for a12b2de
src/Utils/I2C.cpp
@@ -58,7 +58,7 @@ error_t i2c_bus_read_bytes(i2c_bus_handle_t bus, int addr, uint8_t *reg,
58
AD_LOGE("->p_wire->endTransmission: %d", rc);
59
}
60
61
- uint8_t result_len = p_wire->requestFrom((addr), datalen, I2C_END);
+ uint8_t result_len = p_wire->requestFrom(addr, datalen, (int) I2C_END);
62
if (result_len > 0) {
63
result_len = p_wire->readBytes(outdata, datalen);
64
} else {
0 commit comments