Skip to content

Commit 90df695

Browse files
committed
Bugfix: Only load stop screen when its not currently loaded (no need to reload it every timer tick).
1 parent 4bcc7f9 commit 90df695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/Braccio_Record_and_Replay/AppState.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ State * RecordState::handle_OnTimerTick()
192192
return (fabs(v) < EPSILON);
193193
});
194194
if (count > 0) {
195-
lv_scr_load(stop_screen);
195+
if (lv_scr_act() != stop_screen)
196+
lv_scr_load(stop_screen);
196197
}
197198
else {
198199
sample_cnt += 6;

0 commit comments

Comments
 (0)