Skip to content

Commit 2755786

Browse files
committed
Fix ESP32 build warnings
1 parent 7ff4f98 commit 2755786

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Protocentral_spo2_algorithm.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "protocentral_afe44xx.h"
22
#include "Protocentral_spo2_algorithm.h"
33

4-
static int32_t an_x[ BUFFER_SIZE];
5-
static int32_t an_y[ BUFFER_SIZE];
4+
int32_t an_x[ BUFFER_SIZE];
5+
int32_t an_y[ BUFFER_SIZE];
66

77
const uint8_t uch_spo2_table[184]={ 95, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 99, 99, 99, 99,
88
99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
@@ -19,14 +19,15 @@ void spo2_algorithm :: estimate_spo2(uint16_t *pun_ir_buffer, int32_t n_ir_buffe
1919
{
2020
uint32_t un_ir_mean;
2121
int32_t k, n_i_ratio_count;
22-
int32_t i, s, m, n_exact_ir_valley_locs_count, n_middle_idx;
23-
int32_t n_th1, n_npks, n_c_min;
22+
int32_t i, n_exact_ir_valley_locs_count, n_middle_idx;
23+
int32_t n_th1, n_npks;
2424
int32_t an_ir_valley_locs[15] ;
2525
int32_t n_peak_interval_sum;
2626
int32_t n_y_ac, n_x_ac;
2727
int32_t n_spo2_calc;
2828
int32_t n_y_dc_max, n_x_dc_max;
29-
int32_t n_y_dc_max_idx, n_x_dc_max_idx=0;
29+
int32_t n_y_dc_max_idx=0;
30+
int32_t=n_x_dc_max_idx=0;
3031
int32_t an_ratio[5], n_ratio_average;
3132
int32_t n_nume, n_denom ;
3233

0 commit comments

Comments
 (0)