mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
- rcsim: fix usage output
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