mirror of
https://github.com/janishutz/BiogasControllerApp.git
synced 2025-11-24 21:34:24 +00:00
Fix issue with config parsing for filtering of cable
This commit is contained in:
@@ -120,12 +120,12 @@ class BiogasControllerApp(MDApp):
|
||||
def build(self):
|
||||
# Configure com
|
||||
filters = [
|
||||
x
|
||||
x.strip()
|
||||
for x in read_config(
|
||||
"Connection",
|
||||
"filters",
|
||||
"USB-Serial Controller, Prolific USB-Serial Controller",
|
||||
).split(",")
|
||||
"USB-Serial Controller; Prolific USB-Serial Controller",
|
||||
).split(";")
|
||||
]
|
||||
|
||||
baudrate = int(
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
port_override = None
|
||||
baudrate = 19200
|
||||
# List the names as which the adapter cable will show up separated by commas below
|
||||
# For ENATECH, the below is likely correct.
|
||||
filters = USB-Serial Controller, Prolific USB-Serial Controller
|
||||
# For ENATECH, the below is likely correct. The name cannot contain a semicolon
|
||||
filters = USB-Serial Controller; Prolific USB-Serial Controller
|
||||
|
||||
[UI]
|
||||
height = 600
|
||||
|
||||
Reference in New Issue
Block a user