From 0878e632d9e485936cc9f47ab1d2f55775f6c392 Mon Sep 17 00:00:00 2001 From: Daniel Thaler Date: Thu, 3 Oct 2024 19:14:02 +0200 Subject: [PATCH] The newly added input quantity check in AXIS_PTS must handle NO_INPUT_QUANTITY Not handling this leads to false positives --- a2lfile/src/checker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/a2lfile/src/checker.rs b/a2lfile/src/checker.rs index c89ffe3..acf21a7 100644 --- a/a2lfile/src/checker.rs +++ b/a2lfile/src/checker.rs @@ -141,7 +141,9 @@ fn check_axis_pts(axis_pts: &AxisPts, name_map: &ModuleNameMap, log_msgs: &mut V )); } - if !name_map.object.contains_key(&axis_pts.input_quantity) { + if axis_pts.input_quantity != "NO_INPUT_QUANTITY" + && !name_map.object.contains_key(&axis_pts.input_quantity) + { log_msgs.push(format!( "In AXIS_PTS {} on line {}: Referenced input MEASUREMENT {} does not exist.", name, line, axis_pts.input_quantity