mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 00:17:35 +08:00
WIP: px4log
This commit is contained in:
@@ -174,7 +174,7 @@ static void shutdown_worker(void *arg)
|
||||
if (delay_elapsed && ((done && shutdown_lock_counter == 0) || (now > (shutdown_time_us + shutdown_timeout_us)))) {
|
||||
if (shutdown_args & SHUTDOWN_ARG_REBOOT) {
|
||||
#if defined(CONFIG_BOARDCTL_RESET)
|
||||
PX4_INFO_RAW("Reboot NOW.");
|
||||
PX4_INFO("Reboot NOW.");
|
||||
boardctl(BOARDIOC_RESET, (shutdown_args & SHUTDOWN_ARG_TO_BOOTLOADER) ? 1 : 0);
|
||||
#else
|
||||
PX4_PANIC("board reset not available");
|
||||
@@ -182,7 +182,7 @@ static void shutdown_worker(void *arg)
|
||||
|
||||
} else {
|
||||
#if defined(BOARD_HAS_POWER_CONTROL)
|
||||
PX4_INFO_RAW("Powering off NOW.");
|
||||
PX4_INFO("Powering off NOW.");
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF)
|
||||
boardctl(BOARDIOC_POWEROFF, 0);
|
||||
#else
|
||||
@@ -190,7 +190,7 @@ static void shutdown_worker(void *arg)
|
||||
#endif
|
||||
#elif defined(__PX4_POSIX)
|
||||
// simply exit on posix if real shutdown (poweroff) not available
|
||||
PX4_INFO_RAW("Exiting NOW.");
|
||||
PX4_INFO("Exiting NOW.");
|
||||
system_exit(0);
|
||||
#else
|
||||
PX4_PANIC("board shutdown not available");
|
||||
|
||||
Reference in New Issue
Block a user