aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sw/core_tester.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sw/core_tester.py b/src/sw/core_tester.py
index 0dec165..ed5706e 100755
--- a/src/sw/core_tester.py
+++ b/src/sw/core_tester.py
@@ -57,6 +57,10 @@ import threading
#-------------------------------------------------------------------
VERBOSE = False
+# Name of the serial port device used.
+# CHANGE THIS TO MATCH YOUR DEVICE!
+SERIAL_PORT_NAME = '/dev/cu.usbserial-A801SA6T'
+
# Memory map.
SOC = '\x55'
EOC = '\xaa'
@@ -154,7 +158,7 @@ def write_serial_bytes(tx_cmd, serialport):
def main():
# Open device
ser = serial.Serial()
- ser.port='/dev/cu.usbserial-A801SA6T'
+ ser.port = SERIAL_PORT_NAME
ser.baudrate=9600
ser.bytesize=8
ser.parity='N'