mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-01 22:20:00 +01:00
remove compiler warnings
This commit is contained in:
parent
087aa4227c
commit
b3ce142d2a
6
main.c
6
main.c
|
|
@ -36,6 +36,8 @@
|
|||
|
||||
static void apply_error_term(void);
|
||||
static void apply_error_term_at(int i);
|
||||
static void apply_edelay_at(int i);
|
||||
|
||||
static void cal_interpolate(int s);
|
||||
|
||||
void sweep(void);
|
||||
|
|
@ -141,7 +143,7 @@ transform_domain(void)
|
|||
// and calculate ifft for time domain
|
||||
float* tmp = (float*)spi_buffer;
|
||||
|
||||
uint8_t window_size, offset;
|
||||
uint8_t window_size = 0, offset = 0;
|
||||
uint8_t is_lowpass = FALSE;
|
||||
switch (domain_mode & TD_FUNC) {
|
||||
case TD_FUNC_BANDPASS:
|
||||
|
|
@ -1137,7 +1139,7 @@ void apply_error_term_at(int i)
|
|||
measured[1][i][1] = s21ai;
|
||||
}
|
||||
|
||||
void apply_edelay_at(int i)
|
||||
static void apply_edelay_at(int i)
|
||||
{
|
||||
float w = 2 * M_PI * electrical_delay * frequencies[i] * 1E-12;
|
||||
float s = sin(w);
|
||||
|
|
|
|||
|
|
@ -375,11 +375,13 @@ void ui_hide(void);
|
|||
extern uint8_t operation_requested;
|
||||
|
||||
void handle_touch_interrupt(void);
|
||||
void touch_start_watchdog(void);
|
||||
|
||||
#define TOUCH_THRESHOLD 2000
|
||||
|
||||
void touch_cal_exec(void);
|
||||
void touch_draw_test(void);
|
||||
void touch_position(int *x, int *y);
|
||||
void enter_dfu(void);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue