mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
opencm904/flash: get arguments from cli
This commit is contained in:
parent
ce8815f4d1
commit
1c12cb31e9
@ -8,7 +8,7 @@ export DEBUGGER =
|
||||
export DEBUGSERVER =
|
||||
|
||||
HEXFILE = $(BINFILE)
|
||||
export FFLAGS =
|
||||
export FFLAGS = $(PORT) $(HEXFILE)
|
||||
export DEBUGGER_FLAGS =
|
||||
|
||||
# define the default port depending on the host OS
|
||||
|
10
boards/opencm904/dist/robotis-loader.py
vendored
10
boards/opencm904/dist/robotis-loader.py
vendored
@ -57,13 +57,9 @@ else:
|
||||
|
||||
|
||||
# Reading command line
|
||||
# if len(sys.argv) != 3:
|
||||
# exit('! Usage: robotis-loader.py <serial-port> <binary>')
|
||||
# pgm, port, binary = sys.argv
|
||||
|
||||
pgm = sys.argv[0]
|
||||
port = os.environ["PORT"]
|
||||
binary = os.environ["HEXFILE"]
|
||||
if len(sys.argv) != 3:
|
||||
exit('! Usage: robotis-loader.py <serial-port> <binary>')
|
||||
pgm, port, binary = sys.argv
|
||||
|
||||
|
||||
def progressBar(percent, precision=65):
|
||||
|
Loading…
Reference in New Issue
Block a user