From 144b05c0b7958671e7778f01f976849d8757d97a Mon Sep 17 00:00:00 2001 From: Chetana Date: Fri, 19 Apr 2024 10:19:04 -0700 Subject: [PATCH] Fixing crosshair scan output for top and bottom right fields Crosshair command outputs top and bottom scans for left and right fields. The string message for right scans are incorrectly labelled as left which is causing a confusion in terms of understanding the output. The output print message has been corrected to reflect top right and bottom right scans. --- cli/diag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/diag.c b/cli/diag.c index 28ab9853..97cf1115 100644 --- a/cli/diag.c +++ b/cli/diag.c @@ -838,9 +838,9 @@ static void crosshair_csv(FILE *f, struct switchtec_diag_cross_hair *ch, fprintf(f, "top_left_limit, %d, %d\n", ch_left, ch->eye_top_left_lim); fprintf(f, "bottom_left_limit, %d, %d\n", ch_left, ch->eye_bot_left_lim); - fprintf(f, "top_left_limit, %d, %d\n", ch_right, + fprintf(f, "top_right_limit, %d, %d\n", ch_right, ch->eye_top_right_lim); - fprintf(f, "bottom_left_limit, %d, %d\n", ch_right, + fprintf(f, "bottom_right_limit, %d, %d\n", ch_right, ch->eye_bot_right_lim); fprintf(f, "interval_ms, 200\n"); fprintf(f, "w2h, %d\n", crosshair_w2h(ch));