Skip to content

Commit

Permalink
Added header printing in Serial-only mode
Browse files Browse the repository at this point in the history
Column headers were missing when USE_ADALOGGER was turned off.
  • Loading branch information
aromring committed Aug 27, 2018
1 parent 60800c3 commit a756f14
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions RD117_ARDUINO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,25 @@ void setup() {
delay(1000);
}
uch_dummy=Serial.read();
#ifdef TEST_MAXIM_ALGORITHM
Serial.print(F("Time[s]\tSpO2\tHR\tSpO2_MX\tHR_MX\tClock\tRatio\tCorr"));
#else // TEST_MAXIM_ALGORITHM
Serial.print(F("Time[s]\tSpO2\tHR\tClock\tRatio\tCorr"));
#endif // TEST_MAXIM_ALGORITHM
#ifdef SAVE_RAW_DATA
int32_t i;
// These are headers for the red signal
for(i=0;i<BUFFER_SIZE;++i) {
Serial.print("\t");
Serial.print(i);
}
// These are headers for the infrared signal
for(i=0;i<BUFFER_SIZE;++i) {
Serial.print("\t");
Serial.print(i);
}
#endif // SAVE_RAW_DATA
Serial.println("");

#endif // USE_ADALOGGER

Expand Down

0 comments on commit a756f14

Please sign in to comment.