Skip to content

Commit 3ee2f77

Browse files
committed
restore display and radio poweroff in ui
1 parent 9e66a2e commit 3ee2f77

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ void UITask::shutdown(bool restart){
697697
if (restart) {
698698
_board->reboot();
699699
} else {
700+
// still necessary until all boards are refactored to use poweroff
701+
_display->turnOff();
702+
radio_driver.powerOff();
700703
// Power off board including radio, display, GPS and components
701704
_board->powerOff();
702705
}

examples/companion_radio/ui-orig/UITask.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ void UITask::shutdown(bool restart){
307307
if (restart) {
308308
_board->reboot();
309309
} else {
310+
_display->turnOff();
311+
radio_driver.powerOff();
310312
// Power off board including radio, display, GPS and components
311313
_board->powerOff();
312314
}

examples/companion_radio/ui-tiny/UITask.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ void UITask::shutdown(bool restart){
566566
if (restart) {
567567
_board->reboot();
568568
} else {
569+
_display->turnOff();
570+
radio_driver.powerOff();
569571
// Power off board including radio, display, GPS and components
570572
_board->powerOff();
571573
}

0 commit comments

Comments
 (0)