From e70d6b59fde1cf3e448e4237cb96697801967c48 Mon Sep 17 00:00:00 2001 From: cn Date: Thu, 1 Jan 2015 20:15:21 +0100 Subject: [PATCH] More delay before first retry and retry two times since some systems aren't that fast --- pcsensor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsensor b/pcsensor index 1c6f66e..9229324 100755 --- a/pcsensor +++ b/pcsensor @@ -20,8 +20,12 @@ if [ "${1}" = "config" ]; then else TEMP=`${PCSENSOR} -cm` if [[ $? != 0 ]]; then - sleep 1 + sleep 2 TEMP=`${PCSENSOR} -cm` + if [[ $? != 0 ]]; then + sleep 6 + TEMP=`${PCSENSOR} -cm` + fi fi echo "temp.value $TEMP" fi