Mode1 Optical Validation

Dependencies:   max32630fthr

Revision:
11:a16b6bf38841
Parent:
10:192ea88e964b
Child:
12:17a0bf823462
--- a/main.cpp	Fri Mar 26 21:32:42 2021 +0000
+++ b/main.cpp	Wed Mar 31 23:35:27 2021 +0000
@@ -49,8 +49,8 @@
 
 /*****************************************************************************/
 // define one and only one of the following three platforms
-//#define MAXM86146_CFG 1  // tested on MAXM86146EVSYS_sensorBrd+MAXM86161_ADAPTER_REVB+MAX32630FTHR
-#define MAXREFDES103_CFG  // tested on MAXREFDES103
+#define MAXM86146_CFG 1  // tested on MAXM86146EVSYS_sensorBrd+MAXM86161_ADAPTER_REVB+MAX32630FTHR
+//#define MAXREFDES103_CFG 
 //#define MAX86161_CFG 1
 /*****************************************************************************/
 
@@ -168,9 +168,9 @@
             opmode = rsp[ptr];
             hr =  (rsp[ptr+1] << 8) + rsp[ptr+2];
             hr_conf = rsp[ptr+3];
-            ibi = rsp[ptr+4];
+            ibi = (rsp[ptr+5] << 8) + rsp[ptr+4];
 
-            ibi_conf = (rsp[ptr+5] << 8) + rsp[ptr+6];
+            ibi_conf = rsp[ptr+6];
             act = rsp[ptr+7];
             r = (rsp[ptr+8] << 8) + rsp[ptr+9];
             spo2_conf = rsp[ptr+10];