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 <lasse.jarvela@iceye.com>
This commit is contained in:
ljarvela
2026-02-16 11:25:30 -09:00
committed by GitHub
co-authored by ljarvela
parent 4bebbbae93
commit 061fe4806e
+5
View File
@@ -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());