mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
rcsim: fix usage output
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5b95586530
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-10-04 (Fri, 04 Oct 2013)
Origin message was:
------------------
- rcsim: fix usage output
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -79,6 +79,7 @@ enum { // not defined in input.h but used like that, at least in 2.4.22
|
||||
void usage(char *n){
|
||||
unsigned int keynum = sizeof(keyname)/sizeof(struct key);
|
||||
unsigned int i;
|
||||
#ifdef HAVE_DBOX_HARDWARE
|
||||
printf ("rcsim v1.1\nUsage: %s <keyname> [<time>] [<repeat>]\n"
|
||||
" <keyname> is an excerpt of the 'KEY_FOO'-names in <driver/rcinput.h>,\n"
|
||||
" <time> is how long a code is repeatedly sent,\n"
|
||||
@@ -92,6 +93,10 @@ void usage(char *n){
|
||||
" %s KEY_OK 2 250\n"
|
||||
" ; KEY_OK sent every 250ms for 2 seconds\n\n"
|
||||
" Keys:",n,n,n);
|
||||
#else
|
||||
printf ("rcsim v1.1\nUsage: %s <keyname>\n\n"
|
||||
" Keys:",n);
|
||||
#endif
|
||||
for (i=0;i<keynum;){
|
||||
if ((i % 4) == 0)
|
||||
printf ("\n %-16s",keyname[i++].name);
|
||||
|
Reference in New Issue
Block a user