aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-08-03 22:35:18 -0700
committerpx4dev <px4@purgatory.org>2013-08-03 22:35:18 -0700
commite931d3b9cda723d63bf352ca866dc499d8df21f5 (patch)
tree181e4656d32ecacfb4c0b51b8611ce9efce38e4c /src/modules/commander
parentfbd5aae8c67ef7695cc31aa3c9d450a3e0ce46cb (diff)
downloadpx4-firmware-e931d3b9cda723d63bf352ca866dc499d8df21f5.tar.gz
px4-firmware-e931d3b9cda723d63bf352ca866dc499d8df21f5.tar.bz2
px4-firmware-e931d3b9cda723d63bf352ca866dc499d8df21f5.zip
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.
Diffstat (limited to 'src/modules/commander')
-rw-r--r--src/modules/commander/state_machine_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/state_machine_helper.c b/src/modules/commander/state_machine_helper.c
index c26478785..9b6527c33 100644
--- a/src/modules/commander/state_machine_helper.c
+++ b/src/modules/commander/state_machine_helper.c
@@ -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 {