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 2b04d31 commit 82d1150Copy full SHA for 82d1150
src/ICM_20948.cpp
@@ -716,7 +716,7 @@ uint8_t ICM_20948::readMag(AK09916_Reg_Addr_e reg)
716
717
ICM_20948_Status_e ICM_20948::writeMag(AK09916_Reg_Addr_e reg, uint8_t *pdata)
718
{
719
- status = i2cMasterSingleW(MAG_AK09916_I2C_ADDR, reg, pdata);
+ status = i2cMasterSingleW(MAG_AK09916_I2C_ADDR, reg, *pdata);
720
return status;
721
}
722
0 commit comments