Skip to content

Commit

Permalink
make Autogain work too even if there's no READSB_RTLSDR_DEVICE defined
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Feb 13, 2024
1 parent 7c6d3e3 commit d07cafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/s6-overlay/scripts/autogain
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if [[ "${READSB_GAIN,,}" != "autogain" ]]; then
exec sleep infinity
fi

if [[ "${READSB_DEVICE_TYPE,,}" != "rtlsdr" ]] || [[ -z "${READSB_RTLSDR_DEVICE}" ]]; then
s6wrap --quiet --prepend=autogain --timestamps --args echo "ERROR: AUTOGAIN enabled but READSB_DEVICE_TYPE is not \"rtlsdr\" or READSB_RTLSDR_DEVICE serial number not defined. Autogain disabled."
if [[ "${READSB_DEVICE_TYPE,,}" != "rtlsdr" ]]; then
s6wrap --quiet --prepend=autogain --timestamps --args echo "ERROR: AUTOGAIN enabled but READSB_DEVICE_TYPE is not \"rtlsdr\". Autogain disabled."
exec sleep infinity
fi

Expand Down

0 comments on commit d07cafd

Please sign in to comment.