]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/blobdiff - motor-reg.sh
Add default target configuration
[shark/motorek-5200.git] / motor-reg.sh
index fec5aae2f58c43dd3f798e79cdc550b156c8e79b..7b23b105c6e275d554c37ee8cef6a9042630dfdb 100644 (file)
@@ -1,6 +1,6 @@
 A=/sys/devices/motorek.1/action
 P=/sys/devices/motorek.1/position
-ref=1000
+ref=${1:-1000}
 while true; do 
        p=$(cat $P); 
        e=$((ref-p));