Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

Commit

Permalink
Refactored data format.
Browse files Browse the repository at this point in the history
  • Loading branch information
msznajder committed Apr 21, 2017
1 parent 83519bd commit 607e794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions QRSDetectorOnline.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def connect_to_ecg(self, port, baud_rate):
def process_measurement(self, raw_measurement):
"""
Method responsible for parsing and initial processing of ECG measured data sample.
:param str raw_measurement: ECG most recent raw measurement in "timestamp;measurement" format
:param str raw_measurement: ECG most recent raw measurement in "timestamp,measurement" format
"""
raw_measurement_split = raw_measurement.decode().rstrip().split(';')
raw_measurement_split = raw_measurement.decode().rstrip().split(',')

# Parsing raw ECG data - modify this part in accordance to your device data format.
if len(raw_measurement_split) != 2:
Expand Down
2 changes: 1 addition & 1 deletion arduino_ecg_sketch/arduinoECGCode/arduinoECGCode.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void loop() {

//Print in a file for simulation
Serial.print(time);
Serial.print(";");
Serial.print(",");
Serial.print(ECG, DEC);
Serial.println("");
delay(2);
Expand Down

0 comments on commit 607e794

Please sign in to comment.