Skip to content

Commit e587e5b

Browse files
committed
Now the CSV File contains the Timestamp
1 parent 3a907ab commit e587e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def read_arduino_data(ser, csv_writer=None, inverted=False):
166166
channel_data.append(float(value)) # Convert to float and add to channel data
167167

168168
if csv_writer: # If CSV logging is enabled, write the data to the CSV file
169-
current_timestamp = datetime.now().strftime('%H:%M:%S') # Get the current timestamp
169+
current_timestamp = datetime.now().strftime('%H:%M:%S:%f') # Get the current timestamp
170170
csv_writer.writerow([current_timestamp, counter] + channel_data)
171171
if lsl_outlet: # If LSL streaming is enabled, send the data to the LSL stream
172172
lsl_outlet.push_sample(channel_data)

0 commit comments

Comments
 (0)