From e82502a4a4f6a7bcf118ea9a125dce221f38c228 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 6 Apr 2024 17:10:34 +0100 Subject: [PATCH] AP_HAL: Util: add virtual `uart_log` method --- libraries/AP_HAL/Util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index d5bd6bb95c..da22f1a8be 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -3,6 +3,7 @@ #include #include // for FMT_PRINTF #include "AP_HAL_Namespace.h" +#include class ExpandingString; @@ -192,7 +193,13 @@ public: #if HAL_UART_STATS_ENABLED // request information on uart I/O virtual void uart_info(ExpandingString &str) {} + +#if HAL_LOGGING_ENABLED + // Log UART message for each serial port + virtual void uart_log() {}; #endif +#endif // HAL_UART_STATS_ENABLED + // request information on timer frequencies virtual void timer_info(ExpandingString &str) {}