From b778ba42743cb3f53f3700facef27bee832f3dfb Mon Sep 17 00:00:00 2001 From: Owen L - SFE Date: Mon, 16 Dec 2019 16:52:47 -0700 Subject: [PATCH] change i2cMasterSingleW data parameter back to uint8_t --- src/ICM_20948.cpp | 4 ++-- src/ICM_20948.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ICM_20948.cpp b/src/ICM_20948.cpp index a2fab62..3e6afac 100644 --- a/src/ICM_20948.cpp +++ b/src/ICM_20948.cpp @@ -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) diff --git a/src/ICM_20948.h b/src/ICM_20948.h index c7ce6df..df5357e 100644 --- a/src/ICM_20948.h +++ b/src/ICM_20948.h @@ -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