From 061fe4806e7ce14767c9370e225b2435cd657b51 Mon Sep 17 00:00:00 2001 From: ljarvela <168073883+ljarvela@users.noreply.github.com> Date: Mon, 16 Feb 2026 22:25:30 +0200 Subject: [PATCH] uavcan: add warning about CAN error counter reading issue (#26492) Add warning message in print_info() to alert users that CAN error counter values may increase during the function call due to internal counter reading implementation. Users should not fully trust these counters until the underlying issue is fixed. Co-authored-by: ljarvela --- src/drivers/uavcan/uavcan_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers/uavcan/uavcan_main.cpp b/src/drivers/uavcan/uavcan_main.cpp index e70c4436f2..956f5f4193 100644 --- a/src/drivers/uavcan/uavcan_main.cpp +++ b/src/drivers/uavcan/uavcan_main.cpp @@ -1163,6 +1163,11 @@ UavcanNode::print_info() printf("\n"); + // See https://github.com/PX4/PX4-Autopilot/issues/22871 + printf("WARNING: CAN error counter values below may increase during this function call due to internal counter reading implementation.\n"); + printf("Do not fully trust these counters until this issue is fixed.\n"); + printf("\n"); + // UAVCAN node perfcounters printf("UAVCAN node status:\n"); printf("\tInternal failures: %" PRIu64 "\n", _node.getInternalFailureCount());