opencm904/flash: get arguments from cli

This commit is contained in:
Gaëtan Harter 2018-03-26 18:36:30 +02:00
parent ce8815f4d1
commit 1c12cb31e9
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B
2 changed files with 4 additions and 8 deletions

View File

@ -8,7 +8,7 @@ export DEBUGGER =
export DEBUGSERVER = export DEBUGSERVER =
HEXFILE = $(BINFILE) HEXFILE = $(BINFILE)
export FFLAGS = export FFLAGS = $(PORT) $(HEXFILE)
export DEBUGGER_FLAGS = export DEBUGGER_FLAGS =
# define the default port depending on the host OS # define the default port depending on the host OS

View File

@ -57,13 +57,9 @@ else:
# Reading command line # Reading command line
# if len(sys.argv) != 3: if len(sys.argv) != 3:
# exit('! Usage: robotis-loader.py <serial-port> <binary>') exit('! Usage: robotis-loader.py <serial-port> <binary>')
# pgm, port, binary = sys.argv pgm, port, binary = sys.argv
pgm = sys.argv[0]
port = os.environ["PORT"]
binary = os.environ["HEXFILE"]
def progressBar(percent, precision=65): def progressBar(percent, precision=65):