We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ab815 commit 6bbce31Copy full SHA for 6bbce31
src/Board.cpp
@@ -268,10 +268,15 @@ void Board::setAnalogDigitalConverterPower(bool on){
268
269
void Board::setCommunicationPeripheralsPower(bool on){
270
// TODO: Why do we only use the normal mode here?
271
- if(on)
+ if(on){
272
PMIC.getControl()->turnSw1On(Sw1Mode::Normal);
273
- else
+ // PMIC.getControl()->turnSw1On(Sw1Mode::Sleep);
274
+ // PMIC.getControl()->turnSw1On(Sw1Mode::Standby);
275
+ } else {
276
PMIC.getControl()->turnSw1Off(Sw1Mode::Normal);
277
+ // PMIC.getControl()->turnSw1Off(Sw1Mode::Sleep);
278
+ // PMIC.getControl()->turnSw1Off(Sw1Mode::Standby);
279
+ }
280
}
281
282
0 commit comments