Guest User

Untitled

a guest
Jul 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. diff --git a/apps/gui/wps.c b/apps/gui/wps.c
  2. index 85639f7..54b3808 100644
  3. --- a/apps/gui/wps.c
  4. +++ b/apps/gui/wps.c
  5. @@ -721,7 +721,6 @@ long gui_wps_show(void)
  6. bool vol_changed = false;
  7. int i;
  8. long last_left = 0, last_right = 0;
  9. - long curr_tick = current_tick;
  10.  
  11. #ifdef HAVE_LCD_CHARCELLS
  12. status_set_audio(true);
  13. @@ -1167,6 +1166,7 @@ long gui_wps_show(void)
  14. ((restoretimer == RESTORE_WPS_INSTANTLY) ||
  15. TIME_AFTER(current_tick, restoretimer)))
  16. {
  17. + long curr_tick, difftime;
  18. restore = false;
  19. restoretimer = RESTORE_WPS_INSTANTLY;
  20. #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
  21. @@ -1177,8 +1177,9 @@ long gui_wps_show(void)
  22. sb_skin_set_update_delay(0);
  23. FOR_NB_SCREENS(i)
  24. gui_wps[i].display->backdrop_show(BACKDROP_SKIN_WPS);
  25. + curr_tick = current_tick;
  26. send_event(GUI_EVENT_REFRESH, gwps_enter_wps);
  27. - long difftime = current_tick - curr_tick;
  28. + difftime = current_tick - curr_tick;
  29. splashf(HZ, "done, needed %ld:%ld", difftime/HZ, difftime%HZ);
  30. wps_sync_data.do_full_update = update = false;
  31. }
Add Comment
Please, Sign In to add comment