From 906de7d9e7011bef9d08cc240b3515bfbfadd7e6 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:00:49 +0300 Subject: [PATCH] fix PR #550 --- applications/external/spectrum_analyzer/spectrum_analyzer.c | 4 ++-- applications/external/spectrum_analyzer/spectrum_analyzer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/external/spectrum_analyzer/spectrum_analyzer.c b/applications/external/spectrum_analyzer/spectrum_analyzer.c index ac6951da0..ab69cac4f 100644 --- a/applications/external/spectrum_analyzer/spectrum_analyzer.c +++ b/applications/external/spectrum_analyzer/spectrum_analyzer.c @@ -10,7 +10,7 @@ #include "spectrum_analyzer_worker.h" typedef struct { - uint16_t center_freq; + uint32_t center_freq; uint8_t width; uint8_t band; uint8_t vscroll; @@ -447,7 +447,7 @@ int32_t spectrum_analyzer_app(void* p) { SpectrumAnalyzerModel* model = spectrum_analyzer->model; uint8_t vstep = VERTICAL_SHORT_STEP; - uint8_t hstep; + uint32_t hstep; bool exit_loop = false; diff --git a/applications/external/spectrum_analyzer/spectrum_analyzer.h b/applications/external/spectrum_analyzer/spectrum_analyzer.h index c4bb4c33c..7595f625c 100644 --- a/applications/external/spectrum_analyzer/spectrum_analyzer.h +++ b/applications/external/spectrum_analyzer/spectrum_analyzer.h @@ -41,7 +41,7 @@ #define WIDE_STEP 5000 #define NARROW_STEP 1000 #define ULTRAWIDE_STEP 20000 -#define ULTRANARROW_STEP 1000 +#define ULTRANARROW_STEP 500 #define PRECISE_STEP 100 /* margin in KHz */