forked from Archive/PX4-Autopilot
format src/systemcmds/reboot
This commit is contained in:
parent
354bde9627
commit
01cc966b3b
|
@ -52,6 +52,7 @@ int reboot_main(int argc, char *argv[])
|
||||||
|
|
||||||
int myoptind = 1;
|
int myoptind = 1;
|
||||||
const char *myoptarg = NULL;
|
const char *myoptarg = NULL;
|
||||||
|
|
||||||
while ((ch = px4_getopt(argc, argv, "b", &myoptind, &myoptarg)) != -1) {
|
while ((ch = px4_getopt(argc, argv, "b", &myoptind, &myoptarg)) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'b':
|
case 'b':
|
||||||
|
@ -60,7 +61,7 @@ int reboot_main(int argc, char *argv[])
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PX4_ERR("usage: reboot [-b]\n"
|
PX4_ERR("usage: reboot [-b]\n"
|
||||||
" -b reboot into the bootloader");
|
" -b reboot into the bootloader");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue