From 24411dd6a9a58c3c3f3d6b6f45aa5566abaaa0f0 Mon Sep 17 00:00:00 2001 From: Cody Ardoin Date: Wed, 8 Jan 2025 19:29:35 -0600 Subject: [PATCH] Attempt 3: Pointers? --- lib/HAL/PMIC/TYPE1.tpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/HAL/PMIC/TYPE1.tpp b/lib/HAL/PMIC/TYPE1.tpp index a55a687a..95713a9d 100644 --- a/lib/HAL/PMIC/TYPE1.tpp +++ b/lib/HAL/PMIC/TYPE1.tpp @@ -72,8 +72,8 @@ namespace HAL bool inline clrRegisterBit(uint8_t registers, uint8_t bit) { return this->clrRegisterBit(registers, bit); } bool inline getRegisterBit(uint8_t registers, uint8_t bit) { return this->getRegisterBit(registers, bit); } int readRegister(uint8_t reg) { return this->readRegister(reg); } - int readRegister(uint8_t reg, uint8_t *buf, uint8_t length) { return this->readRegister(reg, *buf, length); } - int writeRegister(uint8_t reg, uint8_t *buf, uint8_t length) { return this->writeRegister(reg, *buf, length); } + int readRegister(uint8_t reg, uint8_t buf, uint8_t length) { return this->readRegister(reg, *buf, length); } + int writeRegister(uint8_t reg, uint8_t buf, uint8_t length) { return this->writeRegister(reg, *buf, length); } int writeRegister(uint8_t reg, uint8_t val) { return this->writeRegister(reg, val); } bool begin(TwoWire &w, uint8_t addr, int sda, int scl) { return this->begin(&w, addr, sda, scl) } bool begin() { return this->begin(); }