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