summaryrefslogtreecommitdiff
path: root/apps/examples/relays/relays_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/relays/relays_main.c')
-rw-r--r--apps/examples/relays/relays_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/relays/relays_main.c b/apps/examples/relays/relays_main.c
index c7ad6db0f..941ac2302 100644
--- a/apps/examples/relays/relays_main.c
+++ b/apps/examples/relays/relays_main.c
@@ -122,15 +122,15 @@ int relays_main(int argc, char *argv[])
printf("usage: relays [ -n <relay id> ] <switch-status>\n");
return -1;
}
-
+
if (optind == argc - 1)
{
stat = argv[optind];
set_stat = (!strcmp(stat,"on") || !strcmp(stat,"ON")) ? true : false ;
}
-
+
up_relaysinit();
-
+
if (n >= 0)
{
printf("set RELAY ID %d to %s\n", n , set_stat ? "ON" : "OFF");