mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-15 11:05:08 +00:00
[Libs] Avoid using Wire.begin()
This commit is contained in:
@@ -55,9 +55,9 @@ ADXL345::ADXL345(int CS) {
|
||||
}
|
||||
|
||||
void ADXL345::powerOn() {
|
||||
if (I2C) {
|
||||
Wire.begin(); // If in I2C Mode Only
|
||||
}
|
||||
// if (I2C) {
|
||||
// Wire.begin(); // If in I2C Mode Only ESPEasy has already taken care of this
|
||||
// }
|
||||
|
||||
// ADXL345 TURN ON
|
||||
writeTo(ADXL345_POWER_CTL, 0); // Wakeup
|
||||
|
||||
Reference in New Issue
Block a user