From 21ccc1b76c81f49cd5a98892bba5a4871893c0a9 Mon Sep 17 00:00:00 2001 From: "Dennis Real (DL9CAT)" Date: Sat, 28 Sep 2019 08:24:02 +0200 Subject: [PATCH] remove compiler warnings --- main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index f367093..aa37db8 100644 --- a/main.c +++ b/main.c @@ -40,6 +40,10 @@ static void apply_edelay_at(int i); static void cal_interpolate(int s); +static void set_frequencies(uint32_t start, uint32_t stop, int16_t points); +static void update_frequencies(void); + + bool sweep(bool break_on_operation); static MUTEX_DECL(mutex); @@ -753,8 +757,9 @@ update_marker_index(void) } } -void -set_frequencies(uint32_t start, uint32_t stop, int16_t points) + + +static void set_frequencies(uint32_t start, uint32_t stop, int16_t points) { int i; uint32_t span = (stop - start) / 1000; /* prevents overflow because of maximum of int32_t(2.147e+9) */ @@ -764,6 +769,8 @@ set_frequencies(uint32_t start, uint32_t stop, int16_t points) frequencies[i] = 0; } + + void update_frequencies(void) {