Move motorController.Init call to DisplayApp::Start
This commit is contained in:
parent
0dcfb2edb7
commit
0c87bc27b2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue