Skip to content

Commit a12b2de

Browse files
committed
Compile warning introduced by merge
1 parent b6ad975 commit a12b2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/I2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ error_t i2c_bus_read_bytes(i2c_bus_handle_t bus, int addr, uint8_t *reg,
5858
AD_LOGE("->p_wire->endTransmission: %d", rc);
5959
}
6060

61-
uint8_t result_len = p_wire->requestFrom((addr), datalen, I2C_END);
61+
uint8_t result_len = p_wire->requestFrom(addr, datalen, (int) I2C_END);
6262
if (result_len > 0) {
6363
result_len = p_wire->readBytes(outdata, datalen);
6464
} else {

0 commit comments

Comments
 (0)