refactoring

This commit is contained in:
Bernd Herzog 2023-04-01 18:36:57 +02:00
parent bb90fdc5fc
commit 893df7272f
15 changed files with 40 additions and 1062 deletions

View file

@ -515,11 +515,13 @@ bool init() {
return true;
}
void shutdown() {
void shutdown(const bool leave_screen_on) {
gpdma::controller.disable();
backlight()->off();
display.shutdown();
if (leave_screen_on) {
backlight()->off();
display.shutdown();
}
radio::disable();
audio::shutdown();