forked from Archive/PX4-Autopilot
common/shutdown:All FMU's not stying in bootloader
Fixes bug, wehre reboot -b would not stay in bootloader. Call was passing bit mask (=4) not integer value of 1.
This commit is contained in:
parent
877c19704a
commit
13246bdb2c
|
@ -168,7 +168,7 @@ static void shutdown_worker(void *arg)
|
|||
if (shutdown_args & SHUTDOWN_ARG_REBOOT) {
|
||||
#if defined(CONFIG_BOARDCTL_RESET)
|
||||
PX4_INFO_RAW("Reboot NOW.");
|
||||
board_reset(shutdown_args & SHUTDOWN_ARG_TO_BOOTLOADER);
|
||||
board_reset((shutdown_args & SHUTDOWN_ARG_TO_BOOTLOADER) ? 1 : 0);
|
||||
#else
|
||||
PX4_PANIC("board reset not available");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue