Browse Source

clean funkey shutdown instead of previous command poweroff

Vincent-FK 4 years ago
parent
commit
b95e1d3055
2 changed files with 2 additions and 2 deletions
  1. 1 1
      funkey_gpio_mapping.conf
  2. 1 1
      gpio_mapping.c

+ 1 - 1
funkey_gpio_mapping.conf

@@ -51,7 +51,7 @@
 7+13, KEYBOARD, KEY_W, KEY_W, Brightness--
 11, KEYBOARD, KEY_Y, KEY_Y, Y
 7+11, KEYBOARD, KEY_C, KEY_C, Volume++
-10, SHELL_COMMAND, poweroff, N_OE, Poweroff because N_OE_received
+10, SHELL_COMMAND, shutdown_funkey, N_OE, Poweroff because N_OE_received
 #10, KEYBOARD, KEY_T, KEY_T, Should Poweroff because N_OE_received
 
 # Bypass to remove when button axp working:

+ 1 - 1
gpio_mapping.c

@@ -54,7 +54,7 @@
 
 #define KEY_IDX_MAPPED_FOR_SHORT_PEK_PRESS	16 	//KEY_Q
 #define KEY_IDX_MAPPED_FOR_LONG_PEK_PRESS	28 	//KEY_ENTER
-#define SHELL_CMD_LONG_PEK_PRESS			"poweroff"
+#define SHELL_CMD_LONG_PEK_PRESS			"shutdown_funkey"
 
 
 /****************************************************************