From d8b76b4bc574f5ac2b071efb2aaf5c08e59d70b2 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 18 Sep 2021 23:24:12 +0200 Subject: [PATCH] Improved config parsing --- RNS/Reticulum.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index f79366e..25a7aac 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -311,7 +311,7 @@ class Reticulum: stopbits ) - if "outgoing" in c and c["outgoing"].lower() == "true": + if "outgoing" in c and c.as_bool("outgoing") == True: interface.OUT = True else: interface.OUT = False @@ -352,7 +352,7 @@ class Reticulum: beacon_data ) - if "outgoing" in c and c["outgoing"].lower() == "true": + if "outgoing" in c and c.as_bool("outgoing") == True: interface.OUT = True else: interface.OUT = False @@ -394,7 +394,7 @@ class Reticulum: flow_control ) - if "outgoing" in c and c["outgoing"].lower() == "true": + if "outgoing" in c and c.as_bool("outgoing") == True: interface.OUT = True else: interface.OUT = False @@ -430,7 +430,7 @@ class Reticulum: id_callsign = id_callsign ) - if "outgoing" in c and c["outgoing"].lower() == "true": + if "outgoing" in c and c.as_bool("outgoing") == True: interface.OUT = True else: interface.OUT = False