Add bias_t parameter to SDR command builders

The bias_t parameter was being passed to build_fm_demod_command()
but wasn't defined in the method signatures, causing an unexpected
keyword argument error.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 12:05:11 +00:00
parent 601d432fbf
commit 23689d9fe1
8 changed files with 232 additions and 5 deletions

View File

@@ -93,7 +93,8 @@ class CommandBuilder(ABC):
gain: Optional[float] = None,
ppm: Optional[int] = None,
modulation: str = "fm",
squelch: Optional[int] = None
squelch: Optional[int] = None,
bias_t: bool = False
) -> list[str]:
"""
Build FM demodulation command (for pager decoding).
@@ -106,6 +107,7 @@ class CommandBuilder(ABC):
ppm: PPM frequency correction
modulation: Modulation type (fm, am, etc.)
squelch: Squelch level
bias_t: Enable bias-T power (for active antennas)
Returns:
Command as list of strings for subprocess