use python3 by default in usb-bootloader

parent 05b4a4fd
Pipeline #684 passed with stage
in 45 seconds
#!/usr/bin/python #!/usr/bin/env python3
# #
# DSI Shield # DSI Shield
...@@ -328,8 +328,9 @@ def run_terminal(ser): ...@@ -328,8 +328,9 @@ def run_terminal(ser):
a = ser.recv_nonblock() a = ser.recv_nonblock()
if (a != None): if (a != None):
sys.stderr.write(chr(a)) sys.stderr.write(chr(a))
# flush is needed FIXME: # sys.stderr.write(a).decode('utf-8'))
# sys.stderr.flush() # flush is needed FIXME:
# sys.stderr.flush()
a = os.read(sys.stdin.fileno(), 1) a = os.read(sys.stdin.fileno(), 1)
if a and ord(a) == 1: if a and ord(a) == 1:
...@@ -365,7 +366,7 @@ def main(argv): ...@@ -365,7 +366,7 @@ def main(argv):
'-t / --term: - runs a serial terminal on the specified port after programming') '-t / --term: - runs a serial terminal on the specified port after programming')
sys.exit() sys.exit()
elif opt in ("-f", "--flash"): elif opt in ("-f", "--flash"):
flash_target = arg flash_target = arg
do_flash = True do_flash = True
elif opt in ("-p", "--port"): elif opt in ("-p", "--port"):
our_port = arg our_port = arg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment