![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
k
Dependencies: MAX30003 max32630fthr
Diff: main.cpp
- Revision:
- 23:98e5d02fdbb3
- Parent:
- 22:07eec382c267
diff -r 07eec382c267 -r 98e5d02fdbb3 main.cpp --- a/main.cpp Fri Jul 02 16:22:17 2021 +0000 +++ b/main.cpp Tue Dec 21 02:10:00 2021 +0000 @@ -261,38 +261,38 @@ if (t==30) // C0 { - S0=0; - S1=0; - S2=0; - S3=0; - channel_num[0]= {0}; - t=0;} + S0=0; + S1=0; + S2=0; + S3=0; + channel_num[0]= {0}; + t=0;} if (A==0) //5_7 = P17 {//t=50; - S0=0; - S1=0; - S2=0; - S3=0; - channel_num[0]= {0};} - - if (B==0) // 6_0 = P18 - { S0=1; S1=0; S2=0; S3=0; - channel_num[0]= {1};} - - if (C==0) // 4_0 = P19 + channel_num[0]= {1};} + + if (B==0) // 6_0 = P18 { S0=0; S1=1; S2=0; S3=0; channel_num[0]= {2};} - - } + + if (C==0) // 4_0 = P19 + { + S0=0; + S1=1; + S2=0; + S3=0; + channel_num[0]= {2};} + + } // Read back ECG samples from the FIFO else if(ecgFIFOIntFlag==1)// && (timerflag == 0)) {