Skip to content

Commit ca819e7

Browse files
wiedehopffredclausen
authored andcommitted
rtl_mult override for soapy in new acarsdec version for compatibility
1 parent 1adb05f commit ca819e7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rootfs/etc/s6-overlay/scripts/acarsdec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ if [[ -n "${SOAPYSDR}" ]]; then
4343
# airspy runs at 3MSPS so needs a different sample rate multiplier
4444
RTLMULT="240"
4545
fi
46+
# newer versions of acarsdec default to lower sample rates with soapy
47+
# to avoid compatibility issues, set the old default of 160 if no RTLMULT was given
48+
# with rtl-sdr this isn't necessary
49+
if [[ -z "${RTLMULT}" ]]; then
50+
RTLMULT="160"
51+
fi
4652
fi
4753

4854
if [[ -z "${RTL_SERIAL}" ]] && [[ -n "${SERIAL}" ]]; then

0 commit comments

Comments
 (0)