From f5190d1bcc2ffad0353906a5ca333dba61ea48c2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 15 May 2019 15:49:35 +1000 Subject: [PATCH] AP_HAL_ChibiOS: use logger().WriteCritical(...) for WDOG message --- libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp index c6899947af..56ea4e26d6 100644 --- a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp +++ b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp @@ -214,14 +214,14 @@ static void main_loop() if (hal.util->was_watchdog_reset()) { AP::internalerror().error(AP_InternalError::error_t::watchdog_reset); const AP_HAL::Util::PersistentData &pd = hal.util->persistent_data; - AP::logger().Write("WDOG", "TimeUS,Task,IErr,IErrCnt,MavMsg,MavCmd,SemLine", "QbIIHHH", - AP_HAL::micros64(), - pd.scheduler_task, - pd.internal_errors, - pd.internal_error_count, - pd.last_mavlink_msgid, - pd.last_mavlink_cmd, - pd.semaphore_line); + AP::logger().WriteCritical("WDOG", "TimeUS,Task,IErr,IErrCnt,MavMsg,MavCmd,SemLine", "QbIIHHH", + AP_HAL::micros64(), + pd.scheduler_task, + pd.internal_errors, + pd.internal_error_count, + pd.last_mavlink_msgid, + pd.last_mavlink_cmd, + pd.semaphore_line); } #endif