summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
index ee5578454..b8383bf86 100644
--- a/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
+++ b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
@@ -3,8 +3,11 @@
. /etc/formfactor/config
if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
- while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ]
+ n=1
+ while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] && [ $n -le 5 ]
do
/usr/bin/xtscal
+ sleep 1
+ let "n += 1"
done
fi