From 13246bdb2c5f81c6f7ef8919db7cc3f3c7f7532f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 14 Aug 2020 03:32:29 -0700 Subject: [PATCH] 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. --- platforms/common/shutdown.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/common/shutdown.cpp b/platforms/common/shutdown.cpp index 6d6f357549..03c6b7e0c4 100644 --- a/platforms/common/shutdown.cpp +++ b/platforms/common/shutdown.cpp @@ -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