Skip to content

Commit 21e38b9

Browse files
committed
Fix InitHw call order
1 parent 0dcfb2e commit 21e38b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/displayapp/DisplayApp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void DisplayApp::Start(System::BootErrors error) {
125125
bootError = error;
126126

127127
lvgl.Init();
128+
InitHw();
128129

129130
if (error == System::BootErrors::TouchController) {
130131
LoadNewScreen(Apps::Error, DisplayApp::FullRefreshDirections::None);
@@ -140,7 +141,6 @@ void DisplayApp::Start(System::BootErrors error) {
140141
void DisplayApp::Process(void* instance) {
141142
auto* app = static_cast<DisplayApp*>(instance);
142143
NRF_LOG_INFO("displayapp task started!");
143-
app->InitHw();
144144

145145
while (true) {
146146
app->Refresh();

0 commit comments

Comments
 (0)