Commit 4e2cc790 authored by Jaco Hofmann's avatar Jaco Hofmann
Browse files

Fix getopts error for new options

parent 3ebb1fd0
Pipeline #654 canceled with stage
in 1 minute and 30 seconds
......@@ -32,5 +32,5 @@ reld = '-d' if args.reload_driver else ''
verb = '-v' if args.verbose else ''
program = '-h' if args.mode == 'normal' or args.mode == 'program' else ''
hotplug = '-p' if args.mode == 'normal' or args.mode == 'hotplug' else ''
cmd = '$TAPASCO_HOME/platform/$TAPASCO_PLATFORM/{0}bit_reload.sh {1} {2} {3} {4} {5} {6}'.format(path, verb, reld, hotplug, program, args.bitstream)
cmd = '$TAPASCO_HOME/platform/$TAPASCO_PLATFORM/{0}bit_reload.sh {1} {2} {3} {4} {5}'.format(path, verb, reld, hotplug, program, args.bitstream)
subprocess.call([cmd], shell=True)
......@@ -75,7 +75,7 @@ HOTPLUG=0
PROGRAM=0
OPTIND=1
while getopts vd opt; do
while getopts vdhp opt; do
case $opt in
v)
VERBOSE=1
......
......@@ -45,7 +45,7 @@ HOTPLUG=0
PROGRAM=0
OPTIND=1
while getopts vd opt; do
while getopts vdhp opt; do
case $opt in
v)
VERBOSE=1
......
Supports Markdown
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