From 4f230f8d331b6cd9bcd8917c16d5660f58541dfd Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 19 Mar 2022 00:46:13 -0400 Subject: [PATCH] Testing OP25 Improvements - Introduced threading (again..) --- op25Handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index f9717a1..a9cdc26 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -5,7 +5,7 @@ import os import time -class OP25Handler: #(threading.Thread): +class OP25Handler(threading.Thread): def __init__(self): super().__init__() self.OP25Dir: str = "/home/pi/op25/op25/gr-op25_repeater/apps" @@ -15,7 +15,8 @@ class OP25Handler: #(threading.Thread): self.HTTP_ENABLED = False - def start(self) -> None: + #def start(self) -> None: + def run(self) -> None: self.open_op25() def set_op25_parameters(self, _frequency, _http_enabled: bool = True):