|
if (!readRegisters(LSM6DSOX_OUTX_L_XL, (uint8_t*)data, sizeof(data))) { |
|
if (!readRegisters(LSM6DSOX_OUTX_L_G, (uint8_t*)data, sizeof(data))) { |
Instead of "if(!readRegisters())", the code should check whether the return value of readRegisters() is != 1, as is already done correctly in other places.