clang
This commit is contained in:
parent
36da2e4611
commit
3e0e740d56
|
|
@ -280,13 +280,16 @@ bool Adafruit_I2CDevice::setSpeed(uint32_t desiredclk) {
|
||||||
TWSR = 0x3;
|
TWSR = 0x3;
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_SERIAL
|
#ifdef DEBUG_SERIAL
|
||||||
Serial.print(F("TWSR prescaler = ")); Serial.println(prescaler);
|
Serial.print(F("TWSR prescaler = "));
|
||||||
Serial.print(F("TWBR = ")); Serial.println(atwbr);
|
Serial.println(prescaler);
|
||||||
|
Serial.print(F("TWBR = "));
|
||||||
|
Serial.println(atwbr);
|
||||||
#endif
|
#endif
|
||||||
TWBR = atwbr;
|
TWBR = atwbr;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
#elif (ARDUINO >= 157) && !defined(ARDUINO_STM32_FEATHER) && !defined(TinyWireM_h)
|
#elif (ARDUINO >= 157) && !defined(ARDUINO_STM32_FEATHER) && \
|
||||||
|
!defined(TinyWireM_h)
|
||||||
_wire->setClock(desiredclk);
|
_wire->setClock(desiredclk);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue