antplusbridge/run.sh
Erik Brakkee 13ea215996 more stable computation of lastRevtime
Only computing lastRevtime when we have made a new full rev.
This leads to more consistency in RPMs, especially when accelerating or
decellerating.
2026-06-06 16:58:26 +02:00

14 lines
223 B
Bash
Executable File

#!/bin/bash
while :
do
systemd-inhibit --what=idle:sleep --why="Do not interrupt cycling" $( dirname $0 )/bin/bridge "$@"
if [[ $? -ne 0 ]]
then
echo "ERROR: bridge exited with ERROR" 1>&2
fi
sleep 1
done