Browse Source

board->powerOff() is sufficient to power off radio, display, GPS and components

pull/2895/head
Kevin Le 3 days ago
parent
commit
7d7de88707
  1. 3
      examples/companion_radio/ui-new/UITask.cpp
  2. 2
      examples/companion_radio/ui-orig/UITask.cpp
  3. 3
      examples/companion_radio/ui-tiny/UITask.cpp

3
examples/companion_radio/ui-new/UITask.cpp

@ -697,8 +697,7 @@ void UITask::shutdown(bool restart){
if (restart) { if (restart) {
_board->reboot(); _board->reboot();
} else { } else {
_display->turnOff(); // Power off board including radio, display, GPS and components
radio_driver.powerOff();
_board->powerOff(); _board->powerOff();
} }
} }

2
examples/companion_radio/ui-orig/UITask.cpp

@ -307,7 +307,7 @@ void UITask::shutdown(bool restart){
if (restart) { if (restart) {
_board->reboot(); _board->reboot();
} else { } else {
radio_driver.powerOff(); // Power off board including radio, display, GPS and components
_board->powerOff(); _board->powerOff();
} }
} }

3
examples/companion_radio/ui-tiny/UITask.cpp

@ -566,8 +566,7 @@ void UITask::shutdown(bool restart){
if (restart) { if (restart) {
_board->reboot(); _board->reboot();
} else { } else {
_display->turnOff(); // Power off board including radio, display, GPS and components
radio_driver.powerOff();
_board->powerOff(); _board->powerOff();
} }
} }

Loading…
Cancel
Save