BUGFIG op25
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user