mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-01 14:10:00 +01:00
remove compiler warnings
This commit is contained in:
parent
c94d744311
commit
21ccc1b76c
11
main.c
11
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue