mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 12:23:35 +08:00
Added feedback before rebooting
This commit is contained in:
@@ -47,6 +47,9 @@ __EXPORT int reboot_main(int argc, char *argv[]);
|
|||||||
|
|
||||||
int reboot_main(int argc, char *argv[])
|
int reboot_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
printf("Rebooting now...\n");
|
||||||
|
fflush(stdout);
|
||||||
|
usleep(5000);
|
||||||
up_systemreset();
|
up_systemreset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user