From 798c44a8965e5533764edb9ccae05a5929b01512 Mon Sep 17 00:00:00 2001 From: neonloop Date: Sun, 15 Jan 2023 07:22:56 +0000 Subject: Fixes occasional instant play failures When resuming instant play, FunKey S saves path of executable after launching executable in background. If this happens fast enough, process will still be /bin/busybox, not /opt/picoarch, saving wrong path, failing next launch. To workaround, should save path again before suspending. --- funkey/fk_menu.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'funkey/fk_menu.h') diff --git a/funkey/fk_menu.h b/funkey/fk_menu.h index 36bc460..8b9e7a4 100644 --- a/funkey/fk_menu.h +++ b/funkey/fk_menu.h @@ -129,9 +129,8 @@ typedef enum {RESUME_OPTIONS} ENUM_RESUME_OPTIONS; #define SHELL_CMD_USB_CHECK_IS_SHARING "share is_sharing" #endif #ifdef HAS_MENU_POWERDOWN -#define SHELL_CMD_POWERDOWN "shutdown_funkey" -#define SHELL_CMD_SCHEDULE_POWERDOWN "sched_shutdown" -#define SHELL_CMD_CANCEL_SCHED_POWERDOWN "cancel_sched_powerdown" +#define SHELL_CMD_POWERDOWN "powerdown" +#define SHELL_CMD_POWERDOWN_HANDLE "powerdown handle" #endif #ifdef HAS_MENU_LAUNCHER #define SHELL_CMD_SET_LAUNCHER_GMENU2X "set_launcher gmenu2x" -- cgit v1.2.3