Skip to content

Commit

Permalink
rename start_audio_amp to audio_amp
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent-FK <[email protected]>
  • Loading branch information
Vincent-FK committed May 9, 2021
1 parent ce405c0 commit fd94902
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ void run_menu_loop()
RES_HW_SCREEN_HORIZONTAL * RES_HW_SCREEN_VERTICAL * sizeof(u16));

/* Stop Ampli */
system(SHELL_CMD_TURN_AMPLI_OFF);
system(SHELL_CMD_AUDIO_AMP_OFF);

/// ------ Wait for menu UP key event ------
while(event.type != SDL_KEYUP || event.key.keysym.sym != SDLK_q){
Expand Down Expand Up @@ -1150,7 +1150,7 @@ void run_menu_loop()
}

/* Start Ampli */
system(SHELL_CMD_TURN_AMPLI_ON);
system(SHELL_CMD_AUDIO_AMP_ON);

/// ------ Reset last screen ------
if(reset_last_scren_on_exit){
Expand Down Expand Up @@ -1182,7 +1182,7 @@ int launch_resume_menu_loop()
int option_idx=RESUME_YES;

/* Stop Ampli */
system(SHELL_CMD_TURN_AMPLI_OFF);
system(SHELL_CMD_AUDIO_AMP_OFF);

/* Save prev key repeat params and set new Key repeat */
SDL_GetKeyRepeat(&backup_key_repeat_delay, &backup_key_repeat_interval);
Expand Down Expand Up @@ -1350,7 +1350,7 @@ int launch_resume_menu_loop()
}

/* Start Ampli */
system(SHELL_CMD_TURN_AMPLI_ON);
system(SHELL_CMD_AUDIO_AMP_ON);

return option_idx;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS;
#define SHELL_CMD_BRIGHTNESS_SET "brightness set"
#define SHELL_CMD_NOTIF "notif_set"
#define SHELL_CMD_NOTIF_CLEAR "notif_clear"
#define SHELL_CMD_TURN_AMPLI_ON "audio_amp on"
#define SHELL_CMD_TURN_AMPLI_OFF "audio_amp off"
#define SHELL_CMD_AUDIO_AMP_ON "audio_amp on"
#define SHELL_CMD_AUDIO_AMP_OFF "audio_amp off"
#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown"
#define SHELL_CMD_INSTANT_PLAY "instant_play"
#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey"
Expand Down

0 comments on commit fd94902

Please sign in to comment.