Move motorController.Init call to DisplayApp::Start

This commit is contained in:
Felipe Martinez 2024-06-02 00:43:25 +00:00 committed by JF
parent 0dcfb2edb7
commit 0c87bc27b2

View File

@ -125,6 +125,7 @@ void DisplayApp::Start(System::BootErrors error) {
bootError = error;
lvgl.Init();
motorController.Init();
if (error == System::BootErrors::TouchController) {
LoadNewScreen(Apps::Error, DisplayApp::FullRefreshDirections::None);
@ -150,7 +151,6 @@ void DisplayApp::Process(void* instance) {
void DisplayApp::InitHw() {
brightnessController.Init();
ApplyBrightness();
motorController.Init();
lcd.Init();
}