mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 15:20:00 -07:00
Fix direct sampling flag to use portable -E direct2 syntax
The -D flag is only available in newer rtl_fm builds. Docker and distro packages use the older -E direct / -E direct2 flags instead, which are universally supported. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,12 @@ class RTLSDRCommandBuilder(CommandBuilder):
|
||||
cmd.extend(['-l', str(squelch)])
|
||||
|
||||
if direct_sampling is not None:
|
||||
cmd.extend(['-D', str(direct_sampling)])
|
||||
# Older rtl_fm builds (common in Docker/distro packages) don't
|
||||
# support -D; they use -E direct / -E direct2 instead.
|
||||
if direct_sampling == 1:
|
||||
cmd.extend(['-E', 'direct'])
|
||||
elif direct_sampling == 2:
|
||||
cmd.extend(['-E', 'direct2'])
|
||||
|
||||
if bias_t:
|
||||
cmd.extend(['-T'])
|
||||
|
||||
Reference in New Issue
Block a user