Skip to content

Commit 16bd874

Browse files
committed
Removes spaces & Unwanted Comments
1 parent 45be0e3 commit 16bd874

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bioamptool.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@
4848
SYNC_BYTE2 = 0x5A # Second sync byte value
4949
END_BYTE = 0x01 # End byte value for the packet
5050
verbose_mode = False # Flag for verbose output
51-
52-
# LSL Stream Setup
5351
lsl_outlet = None # LSL outlet for streaming data
54-
55-
# Initialize global variables for 10-second data counting
5652
data_count_10_sec = 0 # Count of data points in the last 10 seconds
5753
last_10_sec_time = None # Last time when the 10-second count was logged
5854

@@ -225,10 +221,10 @@ def parse_data(port, baudrate, lsl_flag=False, csv_flag=False, verbose_flag=Fals
225221
port = args.port # Use specified port
226222
else:
227223
port = auto_detect_arduino(baudrate=args.baudrate) # Auto-detect Arduino port
228-
229224
if port is None:
230225
print("Arduino port not specified or detected. Exiting.") # Print message if no port detected
231226
else:
232227
parse_data(port, args.baudrate, lsl_flag=args.lsl, csv_flag=args.csv, verbose_flag=args.verbose) # Start data parsing
233228
else:
234-
parser.print_help() # Print help message if no valid arguments are provided
229+
parser.print_help() # Print help message if no valid arguments are provided
230+

0 commit comments

Comments
 (0)