From e7c575ed40cb3896a020f2a14be8b17b3c609ea5 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Thu, 19 Aug 2021 18:53:22 +0200 Subject: [PATCH] Small updates --- Makefile | 1 + nanovna.h | 4 ---- sa_core.c | 6 ++---- ui_sa.c | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 2515a8a..7f7b81d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ endif ifeq ($(USE_OPT),) ifeq ($(TARGET),F303) USE_OPT = -Og -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage -std=c11 +#USE_OPT+=-fstack-protector-strong else USE_OPT = -Og -fno-inline-small-functions -ggdb -fomit-frame-pointer -falign-functions=16 --specs=nano.specs -fstack-usage -fsingle-precision-constant endif diff --git a/nanovna.h b/nanovna.h index 7f68086..d538a11 100644 --- a/nanovna.h +++ b/nanovna.h @@ -759,7 +759,6 @@ typedef struct { int16_t index; } limit_t; extern uint8_t active_limit; -extern uint8_t active_reference; extern void limits_update(void); #endif @@ -1029,9 +1028,6 @@ typedef struct setting uint8_t waterfall; // enum uint8_t average[TRACES_MAX]; // enum uint8_t subtract[TRACES_MAX];// index -#ifdef __LIMITS__ - uint8_t limit_trace[REFERENCE_MAX]; // index -#endif uint8_t measurement; // enum uint8_t spur_removal; // enum int8_t normalized_trace; diff --git a/sa_core.c b/sa_core.c index f9ca51f..aa7407c 100644 --- a/sa_core.c +++ b/sa_core.c @@ -128,7 +128,7 @@ const int8_t drive_dBm [16] = {-38, -32, -30, -27, -24, -19, -15, -12, -5, -2, 0 #define MAX_DRIVE (setting.mode == M_GENHIGH ? 15 : 11) #define MIN_DRIVE 8 #define SL_GENHIGH_LEVEL_MIN -38 -#define SL_GENHIGH_LEVEL_MAX 16 +#define SL_GENHIGH_LEVEL_MAX 9 #define SL_GENLOW_LEVEL_MIN -76 #define SL_GENLOW_LEVEL_MAX -7 #endif @@ -254,8 +254,6 @@ void reset_settings(int m) for (int r=0;r menu_back }; #endif