Skip to content

Commit

Permalink
Attempt 3: Pointers?
Browse files Browse the repository at this point in the history
  • Loading branch information
rouing committed Jan 9, 2025
1 parent 7455157 commit 24411dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/HAL/PMIC/TYPE1.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit 24411dd

Please sign in to comment.