Demo program for the MAX30101WING that calculates heart rate and SpO2 data.
Dependencies: MAX30101 max32630fthr
Fork of MAX30101_HR_SPO2 by
Diff: main.cpp
- Revision:
- 12:ac85295f8713
- Parent:
- 11:976c80cc99d5
- Child:
- 13:ef4a84158e4c
--- a/main.cpp Thu Dec 14 22:13:18 2017 +0000 +++ b/main.cpp Tue Mar 06 03:00:25 2018 +0000 @@ -153,7 +153,7 @@ } else { - greenData[ir] = opSample; //saves to buff for calculations + greenData[g] = opSample; //saves to buff for calculations g++; } @@ -161,7 +161,7 @@ } - if(r>=500 & ir>=500 & g>500)//checks to make sure there are 500 + if(r>=500 && ir>=500 && g>500)//checks to make sure there are 500 //samples in data buffers {