Skip to content

Commit

Permalink
apps/examples/touchscreen: Modify wrong printing help of IC specific cmd
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ewoodev committed Dec 24, 2024
1 parent 90cab04 commit 6083cce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/examples/touchscreen/touchscreen_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/****************************************************************************
Expand All @@ -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) {
Expand Down

0 comments on commit 6083cce

Please sign in to comment.