Skip to content

Commit db2f599

Browse files
Update Adafruit_NAU7802.cpp
Fixing misnamed register... I'm going to stop letting Gemini draft my code.
1 parent 3e545cc commit db2f599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_NAU7802.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ bool Adafruit_NAU7802::setPGACap(bool enable) {
345345
*/
346346
/**************************************************************************/
347347
bool Adafruit_NAU7802::setPGABypass(bool enable) {
348-
Adafruit_I2CRegister bypass_reg = Adafruit_I2CRegister(i2c_dev, NAU7802_PGA_REG);
348+
Adafruit_I2CRegister bypass_reg = Adafruit_I2CRegister(i2c_dev, NAU7802_PGA);
349349
Adafruit_I2CRegisterBits bypass_set =
350350
Adafruit_I2CRegisterBits(&bypass_reg, 1, 4); // # bits, bit_shift
351351
if (!bypass_set.write(enable ? 1 : 0))

0 commit comments

Comments
 (0)