From ee1c12f56938af098cd4acd346a0467caa181305 Mon Sep 17 00:00:00 2001 From: Fuji Pebri Date: Mon, 4 Nov 2019 10:22:54 +0700 Subject: [PATCH] Fix cannot back to home on empty rom folder --- esplay-sdk/esplay-components/esplay-ui/esplay-ui.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/esplay-sdk/esplay-components/esplay-ui/esplay-ui.c b/esplay-sdk/esplay-components/esplay-ui/esplay-ui.c index af8941a..db546f0 100644 --- a/esplay-sdk/esplay-components/esplay-ui/esplay-ui.c +++ b/esplay-sdk/esplay-components/esplay-ui/esplay-ui.c @@ -263,6 +263,14 @@ char *ui_file_chooser(const char *path, const char *filter, int currentItem, cha break; } } + else + { + if (!prevKey.values[GAMEPAD_INPUT_B] && key.values[GAMEPAD_INPUT_B]) + { + vTaskDelay(10); + break; + } + } prevKey = key; vTaskDelay(10 / portTICK_PERIOD_MS);