From 58744dd223a7ca3e362018bed5e1150bac716db1 Mon Sep 17 00:00:00 2001 From: kx1t Date: Wed, 25 Oct 2023 16:23:03 -0400 Subject: [PATCH] make sure that `READSB_AUTOGAIN_INITIAL_GAIN` is also used at first startup of readsb --- rootfs/etc/s6-overlay/scripts/readsb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index cde6288..12e2132 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -252,7 +252,7 @@ if [[ -n "$READSB_GAIN" ]]; then read -r gain < /var/globe_history/autogain/gain READSB_CMD+=("--gain=$gain") elif [[ -n "$READSB_GAIN" ]]; then - [[ "${READSB_GAIN,,}" == "autogain" ]] && gain="49.6" || gain="${READSB_GAIN}" + [[ "${READSB_GAIN,,}" == "autogain" ]] && gain="${READSB_AUTOGAIN_INITIAL_GAIN:-49.6}" || gain="${READSB_GAIN}" READSB_CMD+=("--gain=$gain") fi fi