summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings.c28
-rw-r--r--apps/sleeptimer.c6
2 files changed, 11 insertions, 23 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 5357a950c4..2cdf14397e 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -984,11 +984,6 @@ bool set_int(char* string,
984 case BUTTON_PLAY: 984 case BUTTON_PLAY:
985#endif 985#endif
986 done = true; 986 done = true;
987 if (*variable != org_value) {
988 lcd_stop_scroll();
989 lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
990 sleep(HZ/2);
991 }
992 break; 987 break;
993 988
994#ifdef HAVE_RECORDER_KEYPAD 989#ifdef HAVE_RECORDER_KEYPAD
@@ -998,10 +993,11 @@ bool set_int(char* string,
998 case BUTTON_MENU: 993 case BUTTON_MENU:
999#endif 994#endif
1000 if (*variable != org_value) { 995 if (*variable != org_value) {
1001 *variable=org_value; 996 *variable=org_value;
1002 lcd_stop_scroll(); 997 lcd_stop_scroll();
1003 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL)); 998 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
1004 sleep(HZ/2); 999 lcd_update();
1000 sleep(HZ/2);
1005 } 1001 }
1006 done = true; 1002 done = true;
1007 break; 1003 break;
@@ -1084,11 +1080,6 @@ bool set_option(char* string, int* variable, char* options[],
1084 case BUTTON_PLAY: 1080 case BUTTON_PLAY:
1085#endif 1081#endif
1086 done = true; 1082 done = true;
1087 if (*variable != org_value) {
1088 lcd_stop_scroll();
1089 lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
1090 sleep(HZ/2);
1091 }
1092 break; 1083 break;
1093 1084
1094#ifdef HAVE_RECORDER_KEYPAD 1085#ifdef HAVE_RECORDER_KEYPAD
@@ -1098,10 +1089,11 @@ bool set_option(char* string, int* variable, char* options[],
1098 case BUTTON_MENU: 1089 case BUTTON_MENU:
1099#endif 1090#endif
1100 if (*variable != org_value) { 1091 if (*variable != org_value) {
1101 *variable=org_value; 1092 *variable=org_value;
1102 lcd_stop_scroll(); 1093 lcd_stop_scroll();
1103 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL)); 1094 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
1104 sleep(HZ/2); 1095 lcd_update();
1096 sleep(HZ/2);
1105 } 1097 }
1106 done = true; 1098 done = true;
1107 break; 1099 break;
diff --git a/apps/sleeptimer.c b/apps/sleeptimer.c
index b47d93698a..bd9ccc359b 100644
--- a/apps/sleeptimer.c
+++ b/apps/sleeptimer.c
@@ -74,11 +74,6 @@ bool sleeptimer_screen(void)
74 case BUTTON_PLAY: 74 case BUTTON_PLAY:
75#endif 75#endif
76 done = true; 76 done = true;
77 if (changed) {
78 lcd_stop_scroll();
79 lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
80 sleep(HZ/2);
81 }
82 break; 77 break;
83 78
84#ifdef HAVE_RECORDER_KEYPAD 79#ifdef HAVE_RECORDER_KEYPAD
@@ -90,6 +85,7 @@ bool sleeptimer_screen(void)
90 if (changed) { 85 if (changed) {
91 lcd_stop_scroll(); 86 lcd_stop_scroll();
92 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL)); 87 lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
88 lcd_update();
93 set_sleep_timer(org_timer); 89 set_sleep_timer(org_timer);
94 sleep(HZ/2); 90 sleep(HZ/2);
95 } 91 }