remove implicit optional handling for optional fields
This commit is contained in:
@@ -4,7 +4,6 @@ import socket
|
||||
from owrx.command import Flag, Option
|
||||
from typing import List
|
||||
from owrx.form import Input, NumberInput, CheckboxInput
|
||||
from owrx.form.converter import OptionalConverter, IntConverter
|
||||
|
||||
import logging
|
||||
|
||||
@@ -83,13 +82,11 @@ class ConnectorDeviceDescription(SdrDeviceDescription):
|
||||
infotext="Activate an rtl_tcp compatible interface on the port number specified.<br />"
|
||||
+ "Note: Port is only available on the local machine, not on the network.<br />"
|
||||
+ "Note: IQ data may be degraded by the downsampling process to 8 bits.",
|
||||
converter=OptionalConverter(IntConverter()),
|
||||
),
|
||||
CheckboxInput(
|
||||
"iqswap",
|
||||
"Swap I and Q channels",
|
||||
infotext="Swapping inverts the spectrum, so this is useful in combination with an inverting mixer",
|
||||
converter=OptionalConverter(defaultFormValue=False),
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user