Better output

This commit is contained in:
Logan Cusano
2022-03-27 14:18:16 -04:00
parent 4ab14d2e5d
commit 721ef932ce

View File

@@ -56,28 +56,16 @@ class OP25Handler(threading.Thread):
p25_kwargs = [f"./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_stdout = subprocess.DEVNULL
#p25_stderr = subprocess.STDOUT
print(f"Starting OP25")
# Change the interpreter's working directory (idr why)
#cwd = os.getcwd()
#os.chdir(self.OP25Dir)
if self.HTTP_ENABLED:
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)
print(f"OP25 Keyword Args: {p25_kwargs}")
self.OP25Proc = subprocess.Popen(p25_kwargs, executable=self.OP25EXE, shell=False, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=self.OP25Dir)
#os.chdir(cwd)
def close_op25(self):
print(f"Closing OP25")
try: