Skip to content

Commit b778ba4

Browse files
author
Owen L - SFE
committed
change i2cMasterSingleW data parameter back to uint8_t
1 parent 4188581 commit b778ba4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ICM_20948.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,9 @@ ICM_20948_Status_e ICM_20948::i2cMasterSLV4Transaction(uint8_t addr, uint8_t reg
601601
return status;
602602
}
603603

604-
ICM_20948_Status_e ICM_20948::i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t *data)
604+
ICM_20948_Status_e ICM_20948::i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t data)
605605
{
606-
status = ICM_20948_i2c_master_single_w(&_device, addr, reg, data);
606+
status = ICM_20948_i2c_master_single_w(&_device, addr, reg, &data);
607607
return status;
608608
}
609609
uint8_t ICM_20948::i2cMasterSingleR(uint8_t addr, uint8_t reg)

src/ICM_20948.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ICM_20948
9999
ICM_20948_Status_e i2cMasterSLV4Transaction(uint8_t addr, uint8_t reg, uint8_t *data, uint8_t len, bool Rw, bool send_reg_addr = true);
100100

101101
//Used for configuring the Magnetometer
102-
ICM_20948_Status_e i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t *data);
102+
ICM_20948_Status_e i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t data);
103103
uint8_t i2cMasterSingleR(uint8_t addr, uint8_t reg);
104104

105105
// Default Setup

0 commit comments

Comments
 (0)