Skip to content

Commit b3471f6

Browse files
committedNov 27, 2022
Fix ESP32 build issues
1 parent 68807ea commit b3471f6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
 

‎src/Protocentral_spo2_algorithm.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ const uint8_t uch_spo2_table[184]={ 95, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97,
1212
28, 27, 26, 25, 23, 22, 21, 20, 19, 17, 16, 15, 14, 12, 11, 10, 9, 7, 6, 5,
1313
3, 2, 1 } ;
1414

15+
static int32_t an_x[ BUFFER_SIZE];
16+
static int32_t an_y[ BUFFER_SIZE];
17+
1518
void spo2_algorithm :: estimate_spo2(uint16_t *pun_ir_buffer, int32_t n_ir_buffer_length, uint16_t *pun_red_buffer, int32_t *pn_spo2, int8_t *pch_spo2_valid, int32_t *pn_heart_rate, int8_t *pch_hr_valid)
1619
{
17-
static int32_t an_x[ BUFFER_SIZE];
18-
static int32_t an_y[ BUFFER_SIZE];
19-
20+
2021
uint32_t un_ir_mean;
2122
int32_t k, n_i_ratio_count;
2223
int32_t i, n_exact_ir_valley_locs_count, n_middle_idx;

‎src/protocentral_afe44xx.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
#define AFE44XX_SPI_SPEED 2000000
2222
SPISettings SPI_SETTINGS(AFE44XX_SPI_SPEED, MSBFIRST, SPI_MODE0);
2323

24-
static int32_t an_x[ BUFFER_SIZE];
25-
static int32_t an_y[ BUFFER_SIZE];
26-
2724
volatile boolean afe44xx_data_ready = false;
2825
volatile int8_t n_buffer_count; //data length
2926

0 commit comments

Comments
 (0)
Please sign in to comment.