Jun-28-2018, 02:01 PM
After you press CTRL+C the while loop at line 46 will break and your function main() will exit. Then come this part:
So if you want that the script runs along with the US sensor outputs, it has to be inside the while loop.
PS: This condition of your "if" will be always True.
if 0 < 10: os.system('. /home/pi/test.sh')Where your script is called.
So if you want that the script runs along with the US sensor outputs, it has to be inside the while loop.
PS: This condition of your "if" will be always True.