Skip to content

Commit 6bbce31

Browse files
committed
Add commented out code that may be required
1 parent f9ab815 commit 6bbce31

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: src/Board.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,15 @@ void Board::setAnalogDigitalConverterPower(bool on){
268268

269269
void Board::setCommunicationPeripheralsPower(bool on){
270270
// TODO: Why do we only use the normal mode here?
271-
if(on)
271+
if(on){
272272
PMIC.getControl()->turnSw1On(Sw1Mode::Normal);
273-
else
273+
// PMIC.getControl()->turnSw1On(Sw1Mode::Sleep);
274+
// PMIC.getControl()->turnSw1On(Sw1Mode::Standby);
275+
} else {
274276
PMIC.getControl()->turnSw1Off(Sw1Mode::Normal);
277+
// PMIC.getControl()->turnSw1Off(Sw1Mode::Sleep);
278+
// PMIC.getControl()->turnSw1Off(Sw1Mode::Standby);
279+
}
275280
}
276281

277282

0 commit comments

Comments
 (0)