mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-10-26 10:03:07 +00:00
UiTask: better cleaning of eink screens when hibernating
This commit is contained in:
1 parent
408d674ace
commit
da98f5318d
1 file changed
+5
-3
@@ -908,9 +908,11 @@ void UITask::shutdown(bool restart){
|
||||
if (restart) {
|
||||
_board->reboot();
|
||||
} else {
|
||||
display.forceFullRefresh();
|
||||
display.clear();
|
||||
display.endFrame();
|
||||
if (_display->isEink()) {
|
||||
_display->blankScreen();
|
||||
_display->turnOff();
|
||||
_display->powerOff();
|
||||
}
|
||||
// Power off board including radio, display, GPS and components
|
||||
_board->powerOff();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user