shinkos2145: Fix return code for button enable/disable cmd.

Not that this seems to do anything.  Strange.
This commit is contained in:
Solomon Peachy 2014-02-10 23:00:00 -05:00
parent 49e58f59ef
commit 8578561d38
1 changed files with 2 additions and 2 deletions

View File

@ -1325,9 +1325,9 @@ int shinkos2145_cmdline_arg(void *vctx, int argc, char **argv)
case 'b':
if (ctx) {
if (optarg[0] == '1')
button_set(ctx, BUTTON_ENABLED);
return button_set(ctx, BUTTON_ENABLED);
else if (optarg[0] == '0')
button_set(ctx, BUTTON_DISABLED);
return button_set(ctx, BUTTON_DISABLED);
else
return -1;
} else