From 96e7efe4312240b6be73ddb20b89a2a560a1508d Mon Sep 17 00:00:00 2001 From: hugen79 Date: Wed, 8 Jan 2020 22:34:34 +0800 Subject: [PATCH] Fixed incorrect drawing after displaying absolute value in linear format. --- plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.c b/plot.c index 08af120..ab2670c 100644 --- a/plot.c +++ b/plot.c @@ -529,7 +529,7 @@ static uint32_t trace_into_index( v = refpos - group_delay(coeff, freq, point_count, i) * scale; break; case TRC_LINEAR: - v = refpos + linear(coeff[i]) * scale; + v = refpos - linear(coeff[i]) * scale; break; case TRC_SWR: v = refpos+ (1 - swr(coeff[i])) * scale;