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 23, 2024
1 parent 10958bf commit bc713c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/examples/touchscreen/touchscreen_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ static void show_usage(void)
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");
}

/****************************************************************************
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 bc713c0

Please sign in to comment.