Ping the menu core on key/button press to wake it up.

This commit is contained in:
sorgelig
2019-03-18 21:03:37 +08:00
parent 9b0578254b
commit 7f6bc8caa2

View File

@@ -2469,6 +2469,8 @@ void set_volume(int cmd)
void user_io_kbd(uint16_t key, int press)
{
if(is_menu_core()) spi_uio_cmd(UIO_KEYBOARD); //ping the Menu core to wakeup
if (key == KEY_MUTE)
{
if (press == 1 && hasAPI1_5()) set_volume(0);