remove compiler warnings

This commit is contained in:
Dennis Real (DL9CAT) 2019-09-27 17:38:04 +02:00
parent 087aa4227c
commit b3ce142d2a
2 changed files with 6 additions and 2 deletions

6
main.c
View file

@ -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);

View file

@ -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);
/*