scd: Fix DEVINFO with no --watch.

* scd/app.c (app_send_devinfo): Fix for outputing once.
* scd/command.c (hlp_devinfo): Fix comment.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-03-15 15:17:31 +09:00
parent 665b59a066
commit c6dd9ff929
2 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ app_send_devinfo (ctrl_t ctrl, int keep_looping)
} }
send_status_direct (ctrl, "DEVINFO_END", ""); send_status_direct (ctrl, "DEVINFO_END", "");
if (no_device && !keep_looping) if (keep_looping == 0)
break; break;
card_list_wait (); card_list_wait ();

View File

@ -2312,7 +2312,7 @@ static const char hlp_devinfo[] =
"\n" "\n"
"Return information about devices. If the option --watch is given,\n" "Return information about devices. If the option --watch is given,\n"
"it keeps reporting status change until it detects no device is\n" "it keeps reporting status change until it detects no device is\n"
"available." "available.\n"
"The information is returned as a status line using the format:\n" "The information is returned as a status line using the format:\n"
"\n" "\n"
" DEVICE <card_type> <serialno> <app_type>\n" " DEVICE <card_type> <serialno> <app_type>\n"