mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
improve demodulator initialization
This commit is contained in:
parent
26321ab68b
commit
6a8168025d
3 changed files with 35 additions and 6 deletions
|
|
@ -70,3 +70,9 @@ class Modes(object):
|
|||
@staticmethod
|
||||
def getAvailableServices():
|
||||
return [m for m in Modes.getAvailableModes() if m.is_service()]
|
||||
|
||||
@staticmethod
|
||||
def findByModulation(modulation):
|
||||
modes = [m for m in Modes.getAvailableModes() if m.modulation == modulation]
|
||||
if modes:
|
||||
return modes[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue