Wilson Tang
/
HSP_RPC_GUI
Fork of the offical HSP_RPC_GUI firmware
Fork of MAXREFDES100 firmware for MAX32620HSP
Diff: HSP/Test/Test_MAX30101.cpp
- Revision:
- 1:9490836294ea
- Parent:
- 0:e4a10ed6eb92
--- a/HSP/Test/Test_MAX30101.cpp Tue Oct 25 15:22:11 2016 +0000 +++ b/HSP/Test/Test_MAX30101.cpp Fri Apr 21 12:12:30 2017 -0500 @@ -40,7 +40,6 @@ void test_MAX30101(void (*outputString)(const char *)) { Timer timer; int totalPass = 1; - int pass; uint32_t foundHR = 0; uint32_t foundSPO2 = 0; uint32_t foundMULTI = 0; @@ -77,7 +76,7 @@ } if (foundHR == 0) { outputString("HR Stream: FAIL|"); - totalPass &= pass; + totalPass = 0; } // stop stream max30101->HRmode_stop(); @@ -103,7 +102,7 @@ } if (foundSPO2 == 0) { outputString("SPO2 Stream: FAIL|"); - totalPass &= pass; + totalPass = 0; } // stop stream max30101->SpO2mode_stop(); @@ -129,7 +128,7 @@ } if (foundMULTI == 0) { outputString("Multi Stream: FAIL|"); - totalPass &= pass; + totalPass = 0; } // stop stream max30101->Multimode_stop();