Skip to content

Commit d8b76b4

Browse files
committed
Improved config parsing
1 parent d29ff38 commit d8b76b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RNS/Reticulum.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def __apply_config(self):
311311
stopbits
312312
)
313313

314-
if "outgoing" in c and c["outgoing"].lower() == "true":
314+
if "outgoing" in c and c.as_bool("outgoing") == True:
315315
interface.OUT = True
316316
else:
317317
interface.OUT = False
@@ -352,7 +352,7 @@ def __apply_config(self):
352352
beacon_data
353353
)
354354

355-
if "outgoing" in c and c["outgoing"].lower() == "true":
355+
if "outgoing" in c and c.as_bool("outgoing") == True:
356356
interface.OUT = True
357357
else:
358358
interface.OUT = False
@@ -394,7 +394,7 @@ def __apply_config(self):
394394
flow_control
395395
)
396396

397-
if "outgoing" in c and c["outgoing"].lower() == "true":
397+
if "outgoing" in c and c.as_bool("outgoing") == True:
398398
interface.OUT = True
399399
else:
400400
interface.OUT = False
@@ -430,7 +430,7 @@ def __apply_config(self):
430430
id_callsign = id_callsign
431431
)
432432

433-
if "outgoing" in c and c["outgoing"].lower() == "true":
433+
if "outgoing" in c and c.as_bool("outgoing") == True:
434434
interface.OUT = True
435435
else:
436436
interface.OUT = False

0 commit comments

Comments
 (0)