Skip to content

Commit 7e668d3

Browse files
committed
Removed Unnecessary print statement.
1 parent 5a1b8fb commit 7e668d3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

chords.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -313,26 +313,21 @@ def parse_data(ser, lsl_flag=False, csv_flag=False, gui_flag=False, verbose=Fals
313313
print("Process interrupted by user")
314314

315315
finally:
316-
print("Finally is called!")
317316
cleanup()
318317

319-
print(f"Exiting.\nTotal missing samples: {missing_samples}")
318+
print(f"Total missing samples: {missing_samples}")
320319
sys.exit(0)
321320

322321
def cleanup():
323322
global qApp, ser, lsl_outlet, csv_file
324-
print("Cleanup function is called!")
325323

326324
# Close the serial connection first
327325
try:
328326
if ser is not None and ser.is_open:
329-
print("Sending STOP to Arduino and closing serial port.")
330327
send_command(ser, 'STOP') # Ensure the STOP command is sent
331328
time.sleep(1)
332329
ser.reset_input_buffer() # Clear the input buffer
333-
print("Input buffer cleared.")
334330
ser.reset_output_buffer() # Clear the output buffer
335-
print("Output buffer cleared.")
336331
ser.close() # Close the serial port
337332
print("Serial connection closed.")
338333
else:
@@ -365,11 +360,10 @@ def cleanup():
365360
print(f"Error while closing the GUI: {e}")
366361

367362
print("Cleanup completed, exiting program.")
368-
print(f"Exiting.\nTotal missing samples: {missing_samples}")
363+
print(f"Total missing samples: {missing_samples}")
369364
sys.exit(0)
370365

371366
def signal_handler(sig, frame):
372-
print("Entered into signal handler, Performing cleanup")
373367
cleanup()
374368
# sys.exit(0)
375369

0 commit comments

Comments
 (0)