From 2aed400a477ebd8edb81396546ef341df7a55b96 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sat, 15 May 2021 23:43:07 +0300 Subject: [PATCH] Restore tinySA3 compilation --- nanovna.h | 4 ++-- sa_core.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nanovna.h b/nanovna.h index 6b3ea05..6bafbc7 100644 --- a/nanovna.h +++ b/nanovna.h @@ -18,7 +18,7 @@ */ #include "ch.h" -//#ifdef TINYSA_F303 +#ifdef TINYSA_F303 #include "adc_F303.h" #ifdef TINYSA_F072 #error "Remove comment for #ifdef TINYSA_F303" @@ -27,7 +27,7 @@ #define TINYSA4 #endif #define TINYSA4_PROTO -//#endif +#endif #ifdef TINYSA_F072 #ifdef TINYSA_F303 diff --git a/sa_core.c b/sa_core.c index 5f79b10..cee5538 100644 --- a/sa_core.c +++ b/sa_core.c @@ -3963,11 +3963,13 @@ static bool sweep(bool break_on_operation) } } // end of peak finding } +#ifdef TINYSA4 if (setting.average == AV_DECONV && setting.frequency_step != 0) { for (int i = sweep_points - 1 - d_half_width*2; i>0; i--) { actual_t[i+d_half_width] = actual_t[i]; } } +#endif }