rcsim: format helpscreen; bump version 1.2

This commit is contained in:
GetAway
2018-12-02 23:17:37 +01:00
parent b7424b772f
commit 4f6b882b95

View File

@@ -79,7 +79,7 @@ void usage(char *n){
unsigned int keynum = sizeof(keyname)/sizeof(struct key); unsigned int keynum = sizeof(keyname)/sizeof(struct key);
unsigned int i; unsigned int i;
#if defined (EVENTDEV) #if defined (EVENTDEV)
printf ("rcsim v1.1\nUsage: %s <keyname> [<time>] [<repeat>]\n" printf ("rcsim v1.2\nUsage: %s <keyname> [<time>] [<repeat>]\n"
" <keyname> is an excerpt of the 'KEY_FOO'-names in <driver/rcinput.h>,\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" " <time> is how long a code is repeatedly sent,\n"
" unit is seconds, default is 0 = sent only once\n" " unit is seconds, default is 0 = sent only once\n"
@@ -93,14 +93,14 @@ void usage(char *n){
" ; KEY_OK sent every 250ms for 2 seconds\n\n" " ; KEY_OK sent every 250ms for 2 seconds\n\n"
" Keys:",n,n,n); " Keys:",n,n,n);
#else #else
printf ("rcsim v1.1\nUsage: %s <keyname>\n\n" printf ("rcsim v1.2\nUsage: %s <keyname>\n\n"
" Keys:",n); " Keys:",n);
#endif #endif
for (i=0;i<keynum;){ for (i=0;i<keynum;){
if ((i % 4) == 0) if ((i % 4) == 0)
printf ("\n %-16s",keyname[i++].name); printf ("\n %-20s",keyname[i++].name);
else else
printf ("%-16s",keyname[i++].name); printf ("%-20s",keyname[i++].name);
} }
printf ("\n\n"); printf ("\n\n");
} }