BUGFIG bot

- Doesn't close properly
This commit is contained in:
Logan Cusano
2022-02-18 01:51:53 -05:00
parent 4a9cdefa4a
commit 2d6deeb212
2 changed files with 3 additions and 3 deletions

2
bot.py
View File

@@ -312,7 +312,7 @@ class Bot(commands.Bot):
# Wait for the running processes to close
if self.Handler == 'op25':
self.OP25Handler.close_op25()
self.OP25Handler.join()
#self.OP25Handler.join()
# Need a way to 'close' GQRX
self.sdr_started = False

View File

@@ -4,7 +4,7 @@ import time
import os
class OP25Handler(threading.Thread):
class OP25Handler: #(threading.Thread):
def __init__(self):
super().__init__()
self.OP25Dir: str = "/home/pi/op25/op25/gr-op25_repeater/apps"
@@ -12,7 +12,7 @@ class OP25Handler(threading.Thread):
self.Frequency = None
def run(self) -> None:
def start(self) -> None:
self.open_op25()
def set_op25_parameters(self, _frequency):