From 61f113c47551f1aebc4a704612bf3fea309ac339 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Mar 2022 12:49:08 -0400 Subject: [PATCH] Using a list with extend instead of append --- op25Handler.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 7adafb6..c5ae6ab 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -51,10 +51,10 @@ class OP25Handler(threading.Thread): if self.OP25Proc is not None: self.close_op25() - #p25_kwargs = ["./rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f", - # f"{self.Frequency}e6", "-X", "-2"] + p25_kwargs = ["./rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f", + f"{self.Frequency}e6", "-X", "-2"] - p25_kwargs = f"{self.OP25Dir}rx.py --args rtl -N LNA:49 -s 200000 -o 25600 -U -f {self.Frequency}e6 -X -2" + #p25_kwargs = f"{self.OP25Dir}/rx.py --args rtl -N LNA:49 -s 200000 -o 25600 -U -f {self.Frequency}e6 -X -2" p25_stdout = subprocess.DEVNULL p25_stderr = subprocess.STDOUT @@ -65,7 +65,8 @@ class OP25Handler(threading.Thread): os.chdir(self.OP25Dir) if self.HTTP_ENABLED: - p25_kwargs += " -l http:0.0.0.0:8080" + p25_kwargs.extend(["-l", "http:0.0.0.0:8080"]) + #p25_kwargs += " -l http:0.0.0.0:8080" p25_stdout = subprocess.STDOUT print(p25_kwargs)