fatal: Skeleton ScreenDrawing code

This commit is contained in:
Michael Scire 2018-11-10 11:59:55 -08:00
parent 5d5f8ad3d5
commit 5f3187300d
4 changed files with 40 additions and 6 deletions

View file

@ -17,6 +17,20 @@
#include <switch.h>
#include "fatal_task_screen.hpp"
Result ShowFatalTask::ShowFatal() {
Result rc = 0;
/* TODO: Get graphics to work, draw fatal screen. */
return rc;
}
Result ShowFatalTask::Run() {
/* Don't show the fatal error screen until we've verified the battery is okay. */
eventWait(this->battery_event, U64_MAX);
return ShowFatal();
}
void BacklightControlTask::TurnOnBacklight() {
lblSwitchBacklightOn(0);