From 6083ccee31a50024735650e5a78dd43b83b62219 Mon Sep 17 00:00:00 2001 From: "eunwoo.nam" Date: Mon, 23 Dec 2024 13:54:53 +0900 Subject: [PATCH] apps/examples/touchscreen: Modify wrong printing help of IC specific cmd Since, if "--help" come, touch IC specific cmd help message dosen't print. Therefore, to printing help message of IC specific cmd, Add calling ioctl in help. And, Remove the message of IC cmd from the app so that each driver can display a specific help message. Signed-off-by: eunwoo.nam --- apps/examples/touchscreen/touchscreen_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/examples/touchscreen/touchscreen_main.c b/apps/examples/touchscreen/touchscreen_main.c index 534df28ad1..6fae0cef7f 100644 --- a/apps/examples/touchscreen/touchscreen_main.c +++ b/apps/examples/touchscreen/touchscreen_main.c @@ -175,8 +175,7 @@ static void show_usage(void) printf("Excute touchscreen testing or controling.\n\n"); printf("The touchscreen basic test command which printing coordinates and types:\n"); printf(" start: Start the touchscreen basic test \n"); - printf(" stop : Stop the touchscreen basic test\n\n "); - printf("The touchscreen IC specific test command: \n"); + printf(" stop : Stop the touchscreen basic test\n"); } /**************************************************************************** @@ -192,7 +191,8 @@ int touchscreen_main(int argc, char *argv[]) { if (argc <= 1 || !strncmp(argv[1], "-h", 2) || !strncmp(argv[1], "--help", 6)) { show_usage(); - return ERROR; + touchsceen_specific_cmd(0, NULL); + return OK; } if (argc == 2) {