From ca5fa2506efc26e0374f3b1874179b65a5b006bb Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sat, 29 May 2021 19:24:30 +0200 Subject: [PATCH] tinysa3 error --- plot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plot.c b/plot.c index a0b18f8..83bd992 100644 --- a/plot.c +++ b/plot.c @@ -1430,7 +1430,11 @@ static void trace_print_value_string( // Only used at one place // *ptr2++ = 'N'; *ptr2++ = ' '; if (mtype & M_NOISE){ - v += - logf(actual_rbw_x10*100.0) * (10.0/logf(10.0)) + SI4463_noise_correction_x10/10.0; + v += - logf(actual_rbw_x10*100.0) * (10.0/logf(10.0)) +#ifdef TINYSA4 + + SI4463_noise_correction_x10/10.0 +#endif + ; } // Not possible ??? if (v == -INFINITY){