Skip to content

Commit e238822

Browse files
committed
clang-format
1 parent 3cc0846 commit e238822

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Adafruit_I2CDevice.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,19 +266,19 @@ bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) {
266266
// calculate TWBR correctly
267267

268268
if ((F_CPU / 18) < desiredclk) {
269-
#ifdef DEBUG_SERIAL
269+
#ifdef DEBUG_SERIAL
270270
Serial.println(F("I2C.setSpeed too high."));
271-
#endif
271+
#endif
272272
return false;
273273
}
274274
uint32_t atwbr = ((F_CPU / desiredclk) - 16) / 2;
275275
if (atwbr > 16320) {
276-
#ifdef DEBUG_SERIAL
276+
#ifdef DEBUG_SERIAL
277277
Serial.println(F("I2C.setSpeed too low."));
278-
#endif
278+
#endif
279279
return false;
280280
}
281-
281+
282282
if (atwbr <= 255) {
283283
atwbr /= 1;
284284
TWSR = 0x0;
@@ -288,7 +288,7 @@ bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) {
288288
} else if (atwbr <= 4080) {
289289
atwbr /= 16;
290290
TWSR = 0x2;
291-
} else { // if (atwbr <= 16320)
291+
} else { // if (atwbr <= 16320)
292292
atwbr /= 64;
293293
TWSR = 0x3;
294294
}

0 commit comments

Comments
 (0)