From 342d3fcd75c8b9bb87f6a8510330643447d49dbc Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 26 May 2024 23:26:12 +0200 Subject: [PATCH] no_movement_required default / ensure > check interval --- rootfs/etc/s6-overlay/scripts/mlat-client | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/mlat-client b/rootfs/etc/s6-overlay/scripts/mlat-client index c5788bc..b299078 100755 --- a/rootfs/etc/s6-overlay/scripts/mlat-client +++ b/rootfs/etc/s6-overlay/scripts/mlat-client @@ -95,7 +95,10 @@ if grep -qs "gpsd" <<< "$ULTRAFEEDER_CONFIG" || grep -qs "gpsd" <<< "$ULTRAFEEDE old_lon="$new_lon" # in seconds - no_movement_required=19 + no_movement_required=90 + if (( no_movement_required < "${GPSD_CHECK_INTERVAL:-30}" )); then + no_movement_required="${GPSD_CHECK_INTERVAL:-30}" + fi # set no_movement to a number higher than the required time of no movement # this way on startup there is no bogus message printed about starting mlat-clients with a new location no_movement=$(( 2 * no_movement_required ))