From a70ee2c16250eeff003c853bfbc98d3215e1ce85 Mon Sep 17 00:00:00 2001 From: Milan Toman Date: Sun, 26 May 2019 16:37:39 +0200 Subject: [PATCH] Serial console variable added --- python/davis_etl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/davis_etl.py b/python/davis_etl.py index dd7b7ce..224b4c7 100755 --- a/python/davis_etl.py +++ b/python/davis_etl.py @@ -91,6 +91,7 @@ _DEBUG_FILE = _LOG_DIR + _LOG_FILE_ROOT + u'.dbg' # finite loop implementation, tout for 43200 cycles tout = 0 +_SERIAL_CONSOLE = '/dev/ttyUSBdavis' _ABS_ZERO = 273.15 _HEIGHT = 455 temp = {} @@ -368,7 +369,7 @@ if '__main__': davis_decoder = davisDecoder() davis_writer = DBwriter() try: - with serial.Serial('/dev/ttyUSBdavis', 9600) as davis: + with serial.Serial(_SERIAL_CONSOLE, 9600) as davis: # Now, let it run a couple times, end and restart via systemd while tout < 400: line = davis.readline()