Skip to content

Commit f707aa8

Browse files
committed
Fix no CoverUI connected
1 parent eafceb5 commit f707aa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/drivers/ui/SaboCoverUI/sabo_cover_ui_controller.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ void SaboCoverUIController::ThreadFunc() {
131131
display_->WakeUp();
132132
}
133133

134-
ULOG_INFO("Controller-Thread: %p", chThdGetSelfX());
135-
136134
while (true) {
137135
cabo_->Tick();
138136
UpdateStates();
139-
if (display_) {
137+
if (cabo_->IsReady() && display_) {
140138
display_->Tick();
141139
if (cabo_->IsAnyButtonPressed()) display_->WakeUp();
142140
}

0 commit comments

Comments
 (0)