David Jung
/
MAX32664C_MAXM86146_Mode1_Optical
Mode1 Optical Validation
Diff: main.cpp
- Revision:
- 7:23b067817ab8
- Parent:
- 6:e1b7190d6cb5
- Child:
- 8:e6ae69cfecbf
--- a/main.cpp Fri Mar 26 00:41:20 2021 +0000 +++ b/main.cpp Fri Mar 26 00:48:36 2021 +0000 @@ -389,8 +389,9 @@ while (1) { tmr1.start(); if (tmr1.read_ms() > 40) { + tmr1.reset(); read_ppg(); - if (ledcnt++ % 50) + if ((ledcnt++ % 50) == 0) gLED = !gLED; } } @@ -399,7 +400,7 @@ while (1) { if (Time_to_Read_PPG) { read_ppg(); - if (ledcnt++ % 50) + if ((ledcnt++ % 50) == 0) gLED = !gLED; } }