Skip to content

Commit 7ff4f98

Browse files
committed
Fix compile issues on ESP32
1 parent ca18f2c commit 7ff4f98

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
ProtoCentral AF4490-based Pulse-oximeter shield for Arduino
1+
ProtoCentral AF4490/AFE4400 based PPG/SpO2/HR shield for Arduino
22
================================
33
[![Compile Examples](https://github.com/Protocentral/protocentral-afe4490-arduino/workflows/Compile%20Examples/badge.svg)](https://github.com/Protocentral/protocentral-afe4490-arduino/actions?workflow=Compile+Examples)
44

55
[![Oximeter](https://i2.wp.com/protocentral.com/wp-content/uploads/2020/10/4953.jpg?fit=629%2C600&ssl=1)
66
*AFE4490 Pulse Oximeter Shield Kit for Arduino ](https://protocentral.com/product/protocentral-afe4490-pulse-oximeter-shield-for-arduino-v2/)
77

88
[![Oximeter](https://i1.wp.com/protocentral.com/wp-content/uploads/2020/10/4949.jpg?fit=689%2C628&ssl=1)
9+
910
*Don't have it yet? Buy one here: protocentral-afe4490-pulse-oximeter-breakout-board-kit* ](https://protocentral.com/product/protocentral-afe4490-pulse-oximeter-breakout-board-kit/)
1011

1112
This is the Arduino library for the ProtoCentral afe4490 breakout/shield boards.
@@ -46,11 +47,11 @@ Upload the code to your arduino and open [ProtoCentral-openview](https://github.
4647

4748
## For the main documentation site, GUI and more resources, please check out our main [GitHub Repo](https://github.com/Protocentral/AFE4490_Oximeter)
4849

49-
50-
5150
License Information
5251
===================
5352

53+
![License](license_mark.svg)
54+
5455
This product is open source! Both, our hardware and software are open source and licensed under the following licenses:
5556

5657
Hardware

license_mark.svg

Lines changed: 2 additions & 0 deletions
Loading

src/Protocentral_spo2_algorithm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const uint8_t uch_spo2_table[184]={ 95, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97,
1717

1818
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)
1919
{
20-
uint32_t un_ir_mean,un_only_once ;
20+
uint32_t un_ir_mean;
2121
int32_t k, n_i_ratio_count;
2222
int32_t i, s, m, n_exact_ir_valley_locs_count, n_middle_idx;
2323
int32_t n_th1, n_npks, n_c_min;
@@ -26,7 +26,7 @@ void spo2_algorithm :: estimate_spo2(uint16_t *pun_ir_buffer, int32_t n_ir_buffe
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;
29+
int32_t n_y_dc_max_idx, n_x_dc_max_idx=0;
3030
int32_t an_ratio[5], n_ratio_average;
3131
int32_t n_nume, n_denom ;
3232

0 commit comments

Comments
 (0)