SystemTask: Move lcd to DisplayApp
SystemTask should never write to the lcd
This commit is contained in:
parent
6f942e20ed
commit
eccea5ab9f
4 changed files with 3 additions and 8 deletions
|
|
@ -129,6 +129,7 @@ void DisplayApp::InitHw() {
|
|||
brightnessController.Init();
|
||||
ApplyBrightness();
|
||||
motorController.Init();
|
||||
lcd.Init();
|
||||
}
|
||||
|
||||
void DisplayApp::Refresh() {
|
||||
|
|
@ -184,10 +185,12 @@ void DisplayApp::Refresh() {
|
|||
brightnessController.Lower();
|
||||
vTaskDelay(100);
|
||||
}
|
||||
lcd.Sleep();
|
||||
PushMessageToSystemTask(Pinetime::System::Messages::OnDisplayTaskSleeping);
|
||||
state = States::Idle;
|
||||
break;
|
||||
case Messages::GoToRunning:
|
||||
lcd.Wakeup();
|
||||
ApplyBrightness();
|
||||
state = States::Running;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue