RFID fix see init.sh
This commit is contained in:
parent
b103ec0438
commit
be3a965ba3
3
init.sh
3
init.sh
|
|
@ -66,5 +66,8 @@ wget --continue "https://advdownload.advantech.com/productfile/Downloadfile5/1-2
|
|||
chmod +x DAQ_Linux_4.0.11.0_64bit.run
|
||||
sudo ./DAQ_Linux_4.0.11.0_64bit.run
|
||||
|
||||
echo "---------- REMOVE BRLTTY THAT CONFLICTS WITH SERIAL TTYUSB PORTS ----------"
|
||||
sudo apt remove brltty
|
||||
|
||||
echo "---------- INIT DONE ----------"
|
||||
cd "$here"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import logging
|
||||
import platform
|
||||
import sys
|
||||
import termios
|
||||
import time
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
|
|
@ -84,12 +85,18 @@ while True:
|
|||
print(f"IOError: {io_err}")
|
||||
traceback.print_exc()
|
||||
connected = False
|
||||
try:
|
||||
clf.close()
|
||||
except termios.error:
|
||||
pass
|
||||
except Exception as e:
|
||||
print(f"General Exception: {e}")
|
||||
traceback.print_exc()
|
||||
connected = False
|
||||
try:
|
||||
clf.close()
|
||||
except termios.error:
|
||||
pass
|
||||
time.sleep(1)
|
||||
|
||||
print("EXITING")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user