mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
add decoder for test mode
This commit is contained in:
parent
f3f188f93b
commit
ef01fe51e8
|
|
@ -51,6 +51,7 @@ from boswatch.utils import misc
|
|||
from boswatch.inputSource.sdrInput import SdrInput
|
||||
from boswatch.inputSource.lineInInput import LineInInput
|
||||
from boswatch.inputSource.pulseaudioInput import PulseAudioInput
|
||||
from boswatch.decoder.decoder import Decoder # for test mode
|
||||
|
||||
header.logoToLog()
|
||||
header.infoToLog()
|
||||
|
|
@ -105,7 +106,8 @@ try:
|
|||
for testData in testFile:
|
||||
if (len(testData.rstrip(' \t\n\r')) > 1) and ("#" not in testData[0]):
|
||||
logging.info("Testdata: %s", testData.rstrip(' \t\n\r'))
|
||||
inputQueue.put_nowait((testData.rstrip(' \t\n\r'), time.time()))
|
||||
bwPacket = Decoder.decode(testData.rstrip(' \t\n\r'))
|
||||
inputQueue.put_nowait((bwPacket, time.time()))
|
||||
logging.debug("finished reading testdata")
|
||||
|
||||
bwClient = TCPClient()
|
||||
|
|
|
|||
Loading…
Reference in a new issue