We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6bb61 commit 0e5b03fCopy full SHA for 0e5b03f
Adafruit_I2CDevice.cpp
@@ -261,7 +261,8 @@ uint8_t Adafruit_I2CDevice::address(void) { return _addr; }
261
* Not necessarily that the speed was achieved!
262
*/
263
bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) {
264
-#if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) // fix arduino core set clock
+#if defined(__AVR_ATmega328__) || \
265
+ defined(__AVR_ATmega328P__) // fix arduino core set clock
266
// calculate TWBR correctly
267
uint8_t prescaler = 1;
268
uint32_t atwbr = ((F_CPU / desiredclk) - 16) / 2;
0 commit comments