restore display and radio poweroff in ui
This commit is contained in:
1 parent
57288d3c0b
commit
e4738d125e
3 files changed
+7
No files matched your search
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user