Skip to content

Commit

Permalink
Move motorController.Init call to DisplayApp::Start
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jun 2, 2024
1 parent 0dcfb2e commit b6f4234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -150,7 +151,6 @@ void DisplayApp::Process(void* instance) {
void DisplayApp::InitHw() {
brightnessController.Init();
ApplyBrightness();
motorController.Init();
lcd.Init();
}

Expand Down

0 comments on commit b6f4234

Please sign in to comment.