diff --git a/wear_ui.cpp b/wear_ui.cpp index 55b7afc8..ebe0dfe3 100644 --- a/wear_ui.cpp +++ b/wear_ui.cpp @@ -288,7 +288,7 @@ void WearRecoveryUI::progress_loop() { if ((currentIcon == INSTALLING_UPDATE || currentIcon == ERASING) && !show_text) { if (!intro_done) { - if (current_frame == intro_frames - 1) { + if (current_frame >= intro_frames - 1) { intro_done = true; current_frame = 0; } else { diff --git a/wear_ui.h b/wear_ui.h index 839a2643..259a63ee 100644 --- a/wear_ui.h +++ b/wear_ui.h @@ -79,6 +79,9 @@ class WearRecoveryUI : public RecoveryUI { int intro_frames; int loop_frames; + // animation's fps (default: 30) + int animation_fps; + private: Icon currentIcon; @@ -86,8 +89,6 @@ class WearRecoveryUI : public RecoveryUI { int current_frame; - int animation_fps; - bool rtl_locale; pthread_mutex_t updateMutex;