From a72243bfabc03966b6055bc658dde774f7fbc612 Mon Sep 17 00:00:00 2001 From: SaulinPav Date: Sat, 3 Mar 2018 22:44:27 +0300 Subject: [PATCH] Renamed FS to FreqS because there is an overlap with the FS library. Uncommented one line because it seems you had forgotten to do so. --- src/spo2_algorithm.cpp | 4 ++-- src/spo2_algorithm.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spo2_algorithm.cpp b/src/spo2_algorithm.cpp index 5d21a80..67c9b0e 100644 --- a/src/spo2_algorithm.cpp +++ b/src/spo2_algorithm.cpp @@ -67,7 +67,7 @@ void maxim_heart_rate_and_oxygen_saturation(uint16_t *pun_ir_buffer, int32_t n_i int32_t *pn_heart_rate, int8_t *pch_hr_valid) #else void maxim_heart_rate_and_oxygen_saturation(uint32_t *pun_ir_buffer, int32_t n_ir_buffer_length, uint32_t *pun_red_buffer, int32_t *pn_spo2, int8_t *pch_spo2_valid, - //int32_t *pn_heart_rate, int8_t *pch_hr_valid) + int32_t *pn_heart_rate, int8_t *pch_hr_valid) #endif /** * \brief Calculate the heart rate and SpO2 level @@ -131,7 +131,7 @@ void maxim_heart_rate_and_oxygen_saturation(uint32_t *pun_ir_buffer, int32_t n_i if (n_npks>=2){ for (k=1; k -#define FS 25 //sampling frequency -#define BUFFER_SIZE (FS * 4) +#define FreqS 25 //sampling frequency +#define BUFFER_SIZE (FreqS * 4) #define MA4_SIZE 4 // DONOT CHANGE //#define min(x,y) ((x) < (y) ? (x) : (y)) //Defined in Arduino.h