Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ICM_20948.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ ICM_20948_Status_e ICM_20948::i2cMasterSLV4Transaction(uint8_t addr, uint8_t reg
return status;
}

ICM_20948_Status_e ICM_20948::i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t *data)
ICM_20948_Status_e ICM_20948::i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t data)
{
status = ICM_20948_i2c_master_single_w(&_device, addr, reg, data);
status = ICM_20948_i2c_master_single_w(&_device, addr, reg, &data);
return status;
}
uint8_t ICM_20948::i2cMasterSingleR(uint8_t addr, uint8_t reg)
Expand Down
2 changes: 1 addition & 1 deletion src/ICM_20948.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ICM_20948
ICM_20948_Status_e i2cMasterSLV4Transaction(uint8_t addr, uint8_t reg, uint8_t *data, uint8_t len, bool Rw, bool send_reg_addr = true);

//Used for configuring the Magnetometer
ICM_20948_Status_e i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t *data);
ICM_20948_Status_e i2cMasterSingleW(uint8_t addr, uint8_t reg, uint8_t data);
uint8_t i2cMasterSingleR(uint8_t addr, uint8_t reg);

// Default Setup
Expand Down