Readded DSC bookmarks, logging DSC messages from service.

This commit is contained in:
Marat Fayzullin 2024-03-11 11:28:03 -04:00
parent a06c357843
commit 944157e32f
2 changed files with 12 additions and 1 deletions

View File

@ -487,3 +487,14 @@ RHA23|||71550|NFM
RHA24|||71575|NFM
RHA25|||71600|NFM
RHA26|||72325|NFM
#
# DSC
#
DSC|||2187500|DSC
DSC|||4207500|DSC
DSC|||6312000|DSC
DSC|||8414500|DSC
DSC|||12577000|DSC
DSC|||16804500|DSC
DSC|||156525000|DSC

View File

@ -20,6 +20,7 @@ class DscParser(TextParser):
self.frequency = frequency
def parse(self, msg: bytes):
logger.debug(msg.decode("utf-8"))
# Do not parse in service mode
if self.service:
return None
@ -31,5 +32,4 @@ class DscParser(TextParser):
out["frequency"] = self.frequency
if "src" in out:
out["color"] = self.colors.getColor(out["src"])
logger.debug("{0}".format(out))
return out