From de1eabf19a92dd6407f4801ffeef44f7d85a9465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 13 Mar 2014 16:08:47 +0100 Subject: Adding symbolic name and comment to highlight the serial port device. --- src/sw/core_tester.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sw') 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' -- cgit v1.2.3