Remove reboot() API, replace with a prototype for up_systemreset() which is portable.

This commit is contained in:
px4dev
2012-10-27 22:42:43 -07:00
parent 22b0add293
commit 98791bc674
6 changed files with 12 additions and 42 deletions
+1 -1
View File
@@ -138,7 +138,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, "[commander] REBOOTING SYSTEM");
usleep(500000);
reboot();
up_systemreset();
/* SPECIAL CASE: NEVER RETURNS FROM THIS FUNCTION CALL */
} else {
invalid_state = true;