diff --git a/src/drivers/dingux-sdl/dingoo.cpp b/src/drivers/dingux-sdl/dingoo.cpp index ccd204d..50e4df0 100644 --- a/src/drivers/dingux-sdl/dingoo.cpp +++ b/src/drivers/dingux-sdl/dingoo.cpp @@ -305,7 +305,7 @@ void quick_save_and_poweroff() printf("Save Instant Play file\n"); /* Send command to cancel any previously scheduled powerdown */ - fp = popen(SHELL_CMD_CANCEL_SCHED_POWERDOWN, "r"); + fp = popen(SHELL_CMD_POWERDOWN_HANDLE, "r"); if (fp == NULL) { /* Countdown is still ticking, so better do nothing diff --git a/src/drivers/dingux-sdl/menu.cpp b/src/drivers/dingux-sdl/menu.cpp index c9fdf23..d27d108 100644 --- a/src/drivers/dingux-sdl/menu.cpp +++ b/src/drivers/dingux-sdl/menu.cpp @@ -925,8 +925,8 @@ void run_menu_loop() if(menu_confirmation){ MENU_DEBUG_PRINTF("Powerdown - confirmed\n"); /// ----- Shell cmd ---- - execlp(SHELL_CMD_SHUTDOWN_FUNKEY, SHELL_CMD_SHUTDOWN_FUNKEY, NULL); - MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_SHUTDOWN_FUNKEY); + execlp(SHELL_CMD_POWERDOWN, SHELL_CMD_POWERDOWN, NULL); + MENU_ERROR_PRINTF("Failed to run command %s\n", SHELL_CMD_POWERDOWN); exit(0); } else{ diff --git a/src/drivers/dingux-sdl/menu.h b/src/drivers/dingux-sdl/menu.h index 0be1756..c83ae1e 100644 --- a/src/drivers/dingux-sdl/menu.h +++ b/src/drivers/dingux-sdl/menu.h @@ -38,9 +38,9 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS; #define SHELL_CMD_NOTIF_SET "notif set" #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_POWERDOWN "powerdown" +#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle" #define SHELL_CMD_INSTANT_PLAY "instant_play" -#define SHELL_CMD_SHUTDOWN_FUNKEY "shutdown_funkey" #define SHELL_CMD_KEYMAP_DEFAULT "keymap default" #define SHELL_CMD_KEYMAP_RESUME "keymap resume"