summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps.c38
1 files changed, 16 insertions, 22 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 0819d122f5..ed653a8535 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -614,15 +614,26 @@ long gui_wps_show(void)
614 FOR_NB_SCREENS(i) 614 FOR_NB_SCREENS(i)
615 { 615 {
616 if(update(&gui_wps[i])) 616 if(update(&gui_wps[i]))
617 update_failed = true; 617 exit = true;
618 }
619 if (update_failed)
620 {
621 return GO_TO_ROOT;
622 } 618 }
623 update_track = false; 619 update_track = false;
624 } 620 }
625 621
622 if (restore &&
623 ((restoretimer == 0) ||
624 (restoretimer < current_tick)))
625 {
626 restore = false;
627 restoretimer = 0;
628 if (gui_wps_display()) {
629 exit = true;
630 }
631 else if (wps_state.id3){
632 FOR_NB_SCREENS(i)
633 gui_wps_refresh(&gui_wps[i], 0, WPS_REFRESH_NON_STATIC);
634 }
635 }
636
626 if (exit) { 637 if (exit) {
627 action_signalscreenchange(); 638 action_signalscreenchange();
628#ifdef HAVE_LCD_CHARCELLS 639#ifdef HAVE_LCD_CHARCELLS
@@ -646,23 +657,6 @@ long gui_wps_show(void)
646 657
647 if ( button ) 658 if ( button )
648 ata_spin(); 659 ata_spin();
649
650 if (restore &&
651 ((restoretimer == 0) ||
652 (restoretimer < current_tick)))
653 {
654 restore = false;
655 restoretimer = 0;
656 if (gui_wps_display())
657 {
658 return GO_TO_ROOT;
659 }
660
661 if (wps_state.id3){
662 FOR_NB_SCREENS(i)
663 gui_wps_refresh(&gui_wps[i], 0, WPS_REFRESH_NON_STATIC);
664 }
665 }
666 } 660 }
667 return GO_TO_ROOT; /* unreachable - just to reduce compiler warnings */ 661 return GO_TO_ROOT; /* unreachable - just to reduce compiler warnings */
668} 662}