Modification de l'interruption pour que ça marche en fait
This commit is contained in:
parent
b2b27b84cc
commit
606b4f5b19
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
trap "boucle=false" INT
|
trap "boucle=false ; python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3 ; exit" INT
|
||||||
trap "boucle=false" TERM
|
trap "boucle=false ; python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3 ; exit" TERM
|
||||||
boucle=true
|
boucle=true
|
||||||
|
|
||||||
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
||||||
|
@ -19,5 +19,3 @@ while $boucle; do
|
||||||
read line < /dev/ttyACM0
|
read line < /dev/ttyACM0
|
||||||
echo $line >> $fileName
|
echo $line >> $fileName
|
||||||
done
|
done
|
||||||
|
|
||||||
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3
|
|
Loading…
Add table
Reference in a new issue