@@ -644,6 +644,9 @@ void run_menu_loop()
644644 }*/
645645 memcpy (backup_hw_screen->pixels , hw_screen->pixels ,
646646 RES_HW_SCREEN_HORIZONTAL * RES_HW_SCREEN_VERTICAL * sizeof (u16 ));
647+
648+ /* Stop Ampli */
649+ popen (SHELL_CMD_TURN_AMPLI_OFF, " r" );
647650
648651 // / -------- Main loop ---------
649652 while (!stop_menu_loop)
@@ -993,6 +996,9 @@ void run_menu_loop()
993996 if (SDL_EnableKeyRepeat (backup_key_repeat_delay, backup_key_repeat_interval)){
994997 MENU_ERROR_PRINTF (" ERROR with SDL_EnableKeyRepeat: %s\n " , SDL_GetError ());
995998 }
999+
1000+ /* Start Ampli */
1001+ popen (SHELL_CMD_TURN_AMPLI_ON, " r" );
9961002}
9971003
9981004
@@ -1016,6 +1022,9 @@ int launch_resume_menu_loop()
10161022 uint8_t menu_confirmation = 0 ;
10171023 int option_idx=RESUME_YES;
10181024
1025+ /* Stop Ampli */
1026+ popen (SHELL_CMD_TURN_AMPLI_OFF, " r" );
1027+
10191028 /* Save prev key repeat params and set new Key repeat */
10201029 SDL_GetKeyRepeat (&backup_key_repeat_delay, &backup_key_repeat_interval);
10211030 if (SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL)){
@@ -1178,5 +1187,8 @@ int launch_resume_menu_loop()
11781187 MENU_ERROR_PRINTF (" ERROR with SDL_EnableKeyRepeat: %s\n " , SDL_GetError ());
11791188 }
11801189
1190+ /* Start Ampli */
1191+ popen (SHELL_CMD_TURN_AMPLI_ON, " r" );
1192+
11811193 return option_idx;
11821194}
0 commit comments