mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-06 23:15:19 +00:00
add more sample rate validation
This commit is contained in:
parent
374bbb599e
commit
402eadd280
21 changed files with 145 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
|
||||
from owrx.form.input import Input
|
||||
from owrx.form.input.device import BiasTeeInput
|
||||
from owrx.form.input.validator import Range
|
||||
from typing import List
|
||||
|
||||
|
||||
|
|
@ -34,3 +35,6 @@ class HackrfDeviceDescription(SoapyConnectorDeviceDescription):
|
|||
|
||||
def getGainStages(self):
|
||||
return ["LNA", "AMP", "VGA"]
|
||||
|
||||
def getSampleRateRanges(self) -> list[Range]:
|
||||
return [Range(1000000, 20000000)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue