WIP: px4log

This commit is contained in:
Daniel Agar
2023-03-10 15:00:35 -05:00
parent 0ae296bfe2
commit b4555db0e7
245 changed files with 573 additions and 1185 deletions
+3 -3
View File
@@ -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");