Add an option to the systemreset() call and to the reboot command (-b) to reboot into the bootloader.

The system will remain in the bootloader until it's reset, or until an upload is completed.
This commit is contained in:
px4dev
2013-08-03 22:35:18 -07:00
parent fbd5aae8c6
commit e931d3b9cd
4 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ int do_state_update(int status_pub, struct vehicle_status_s *current_status, con
current_status->flag_system_armed = false;
mavlink_log_critical(mavlink_fd, "REBOOTING SYSTEM");
usleep(500000);
systemreset();
systemreset(false);
/* SPECIAL CASE: NEVER RETURNS FROM THIS FUNCTION CALL */
} else {