Serial console variable added
This commit is contained in:
@@ -91,6 +91,7 @@ _DEBUG_FILE = _LOG_DIR + _LOG_FILE_ROOT + u'.dbg'
|
|||||||
# finite loop implementation, tout for 43200 cycles
|
# finite loop implementation, tout for 43200 cycles
|
||||||
tout = 0
|
tout = 0
|
||||||
|
|
||||||
|
_SERIAL_CONSOLE = '/dev/ttyUSBdavis'
|
||||||
_ABS_ZERO = 273.15
|
_ABS_ZERO = 273.15
|
||||||
_HEIGHT = 455
|
_HEIGHT = 455
|
||||||
temp = {}
|
temp = {}
|
||||||
@@ -368,7 +369,7 @@ if '__main__':
|
|||||||
davis_decoder = davisDecoder()
|
davis_decoder = davisDecoder()
|
||||||
davis_writer = DBwriter()
|
davis_writer = DBwriter()
|
||||||
try:
|
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
|
# Now, let it run a couple times, end and restart via systemd
|
||||||
while tout < 400:
|
while tout < 400:
|
||||||
line = davis.readline()
|
line = davis.readline()
|
||||||
|
|||||||
Reference in New Issue
Block a user