From b580c873a8535395080fc52ace1120cf7fbb8769 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 7 Aug 2022 16:55:35 +1000 Subject: [PATCH] AP_IOMCU: log number of errors reading status page --- libraries/AP_IOMCU/AP_IOMCU.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_IOMCU/AP_IOMCU.cpp b/libraries/AP_IOMCU/AP_IOMCU.cpp index 476606a4dc..a7fefc12e0 100644 --- a/libraries/AP_IOMCU/AP_IOMCU.cpp +++ b/libraries/AP_IOMCU/AP_IOMCU.cpp @@ -362,14 +362,16 @@ void AP_IOMCU::write_log() // @LoggerMessage: IOMC // @Description: IOMCU diagnostic information // @Field: TimeUS: Time since system startup +// @Field: RSErr: Status Read error count (zeroed on successful read) // @Field: Mem: Free memory // @Field: TS: IOMCU uptime // @Field: NPkt: Number of packets received by IOMCU // @Field: Nerr: Protocol failures on MCU side // @Field: Nerr2: Reported number of failures on IOMCU side // @Field: NDel: Number of delayed packets received by MCU - AP::logger().WriteStreaming("IOMC", "TimeUS,Mem,TS,NPkt,Nerr,Nerr2,NDel", "QHIIIII", + AP::logger().WriteStreaming("IOMC", "TimeUS,RSErr,Mem,TS,NPkt,Nerr,Nerr2,NDel", "QHHIIIII", AP_HAL::micros64(), + read_status_errors, reg_status.freemem, reg_status.timestamp_ms, reg_status.total_pkts,