Skip to content
Snippets Groups Projects
Unverified Commit 1c12cb31 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

opencm904/flash: get arguments from cli

parent ce8815f4
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ export DEBUGGER = ...@@ -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
......
...@@ -57,13 +57,9 @@ else: ...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment