mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 06:43:54 +00:00
Moved setStdin to BaseClass
This commit is contained in:
parent
35ada90130
commit
ba2fab398e
4 changed files with 7 additions and 10 deletions
|
|
@ -18,6 +18,7 @@ import time
|
|||
import logging
|
||||
import threading
|
||||
from abc import ABC, abstractmethod
|
||||
from boswatch.utils import paths
|
||||
from boswatch.processManager import ProcessManager
|
||||
|
||||
logging.debug("- %s loaded", __name__)
|
||||
|
|
@ -65,7 +66,7 @@ class InputBase(ABC):
|
|||
logging.debug("Add received data to queue")
|
||||
print(data)
|
||||
|
||||
def startmm(self, decoderConfig):
|
||||
def startmm(self, decoderConfig, StdIn):
|
||||
mmProc = ProcessManager(str(decoderConfig.get("mmPath", default="multimon-ng")), textMode=True)
|
||||
if decoderConfig.get("fms", default=0):
|
||||
mmProc.addArgument("-a FMSFSK")
|
||||
|
|
@ -81,4 +82,6 @@ class InputBase(ABC):
|
|||
mmProc.addArgument("-C " + str(decoderConfig.get("mmChar")))
|
||||
mmProc.addArgument("-f alpha")
|
||||
mmProc.addArgument("-t raw -")
|
||||
mmProc.setStdin(StdIn)
|
||||
mmProc.setStderr(open(paths.LOG_PATH + "multimon-ng.log", "a"))
|
||||
return mmProc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue