From 1e060bcdbacc29c87cc6b1a1b642048b859f8c0e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 01:08:50 -0500 Subject: [PATCH] BUGFIG op25 --- op25Handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 4af2da6..d66bca3 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -3,7 +3,7 @@ import subprocess import os -class OP25Handler: +class OP25Handler(threading.Thread): def __init__(self): super().__init__() self.OP25Dir: str = "/home/pi/op25/op25/gr-op25_repeater/apps" @@ -24,12 +24,10 @@ class OP25Handler: print(f"Starting OP25") os.chdir(self.OP25Dir) - self.OP25Proc = subprocess.Popen([f"./rx.py", "--args", "'rtl'", "-N", "'LNA:49'", "-s", "200000", "-o", + self.OP25Proc = subprocess.call([f"./rx.py", "--args", "'rtl'", "-N", "'LNA:49'", "-s", "200000", "-o", "25600", "-U", "-f", f"{self.Frequency}e6", "-X", "-2", "-l" "http:0.0.0.0:8080"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - print(self.OP25Proc.poll()) - def close_op25(self): print(f"Closing OP25") try: