Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
Fix missing symbol from librobotcontrol
Browse files Browse the repository at this point in the history
Under several conditions it is possible to have this symbol in lib.
However by default it is not getting compiled. Also under the hood
function rc_i2c_read_data immediatelly calls rc_i2c_read_bytes.
  • Loading branch information
Andrii Beregovenko authored and bkueng committed Jul 24, 2019
1 parent 06277ef commit c7d2fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/I2CDevObj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ int I2CDevObj::_readReg(uint8_t address, uint8_t *out_buffer, size_t length)

ssize_t bytes_read = 0;

bytes_read = rc_i2c_read_data(m_bus_num, address, length, out_buffer);
bytes_read = rc_i2c_read_bytes(m_bus_num, address, length, out_buffer);

if (bytes_read != (ssize_t)length) {
DF_LOG_ERR("error: I2CDevObj::_readReg reports a read of %zd bytes at address 0x%X, but attempted to read %zd bytes",
Expand Down

0 comments on commit c7d2fe2

Please sign in to comment.