Browse Source

restore display and radio poweroff in ui

pull/2888/merge
Florent 2 days ago
parent
commit
3ee2f77877
  1. 3
      examples/companion_radio/ui-new/UITask.cpp
  2. 2
      examples/companion_radio/ui-orig/UITask.cpp
  3. 2
      examples/companion_radio/ui-tiny/UITask.cpp

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

@ -697,6 +697,9 @@ void UITask::shutdown(bool restart){
if (restart) { if (restart) {
_board->reboot(); _board->reboot();
} else { } else {
// still necessary until all boards are refactored to use poweroff
_display->turnOff();
radio_driver.powerOff();
// Power off board including radio, display, GPS and components // Power off board including radio, display, GPS and components
_board->powerOff(); _board->powerOff();
} }

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

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

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

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

Loading…
Cancel
Save