@@ -699,6 +699,9 @@ void run_menu_loop()
699699 memcpy (backup_hw_screen -> pixels , (uint16_t * ) virtual_hw_screen -> pixels ,
700700 RES_HW_SCREEN_HORIZONTAL * RES_HW_SCREEN_VERTICAL * sizeof (uint16_t ));
701701
702+ /* Stop Ampli */
703+ popen (SHELL_CMD_TURN_AMPLI_OFF , "r" );
704+
702705 /// ------ Wait for menu UP key event ------
703706 int actions [IN_BINDTYPE_COUNT ] = { 0 , };
704707 while (event .type != SDL_KEYUP || event .key .keysym .sym != SDLK_q ){
@@ -1077,6 +1080,9 @@ void run_menu_loop()
10771080 if (SDL_EnableKeyRepeat (backup_key_repeat_delay , backup_key_repeat_interval )){
10781081 MENU_ERROR_PRINTF ("ERROR with SDL_EnableKeyRepeat: %s\n" , SDL_GetError ());
10791082 }
1083+
1084+ /* Start Ampli */
1085+ popen (SHELL_CMD_TURN_AMPLI_ON , "r" );
10801086}
10811087
10821088
@@ -1103,6 +1109,9 @@ int launch_resume_menu_loop()
11031109 uint8_t menu_confirmation = 0 ;
11041110 int option_idx = RESUME_YES ;
11051111
1112+ /* Stop Ampli */
1113+ popen (SHELL_CMD_TURN_AMPLI_OFF , "r" );
1114+
11061115 /* Save prev key repeat params and set new Key repeat */
11071116 SDL_GetKeyRepeat (& backup_key_repeat_delay , & backup_key_repeat_interval );
11081117 if (SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY , SDL_DEFAULT_REPEAT_INTERVAL )){
@@ -1265,6 +1274,9 @@ int launch_resume_menu_loop()
12651274 MENU_ERROR_PRINTF ("ERROR with SDL_EnableKeyRepeat: %s\n" , SDL_GetError ());
12661275 }
12671276
1277+ /* Start Ampli */
1278+ popen (SHELL_CMD_TURN_AMPLI_ON , "r" );
1279+
12681280 return option_idx ;
12691281}
12701282
0 commit comments