added shabang to pc main.py so it can be escecuted with minimal fuzz

This commit is contained in:
2023-10-03 01:10:10 +02:00
parent 364d019b3d
commit 51d19ac1f5
2 changed files with 31 additions and 5 deletions

8
SW/PC/main.py Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/python
import serial
import json
from datetime import datetime
@@ -73,7 +75,7 @@ def write(ser):
break
def main():
s = serial.Serial(port="/dev/ttyACM1", parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE, timeout=1)
s = serial.Serial(port="/dev/ttyACM0", parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE, timeout=1)
s.flush()
rw = input('Read or Write tags? [R/w]')
@@ -95,5 +97,5 @@ def main():
if __name__ == "__main__":
main()
if __name__ == "__main__":
main()