Skip to content

Commit 82d1150

Browse files
author
Owen L - SFE
committed
Update ICM_20948.cpp
1 parent 2b04d31 commit 82d1150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ICM_20948.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ uint8_t ICM_20948::readMag(AK09916_Reg_Addr_e reg)
716716

717717
ICM_20948_Status_e ICM_20948::writeMag(AK09916_Reg_Addr_e reg, uint8_t *pdata)
718718
{
719-
status = i2cMasterSingleW(MAG_AK09916_I2C_ADDR, reg, pdata);
719+
status = i2cMasterSingleW(MAG_AK09916_I2C_ADDR, reg, *pdata);
720720
return status;
721721
}
722722

0 commit comments

Comments
 (0)