diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 5ec8c7e..9b518b4 100644 --- a/Adafruit_I2CDevice.cpp +++ b/Adafruit_I2CDevice.cpp @@ -292,7 +292,7 @@ bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) { atwbr /= 64; TWSR = 0x3; } - TWBR = atwb; + TWBR = atwbr; #ifdef DEBUG_SERIAL Serial.print(F("TWSR prescaler = "));