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 c2161f5 commit e47ff70Copy full SHA for e47ff70
src/Board.cpp
@@ -205,9 +205,11 @@ void Board::setAllPeripheralsPower(bool on){
205
this -> setCommunicationPeripheralsPower(on);
206
this -> setExternalPowerEnabled(on);
207
this -> setAnalogDigitalConverterPower(on);
208
- // I2C needs to be shut down because the PMIC would still try
209
- // to communicate with the MCU.
210
- Wire3.end();
+ if(!on){
+ // I2C needs to be shut down because the PMIC would still try
+ // to communicate with the MCU.
211
+ Wire3.end();
212
+ }
213
#else if defined(ARDUINO_PORTENTA_H7)
214
// TODO Can we extract this into functions?
215
if(on){
0 commit comments