forked from M-Labs/artiq
artiq_devtool: add load action.
This commit is contained in:
parent
8d62ea2288
commit
87c2f119a5
|
@ -65,7 +65,7 @@ def get_argparser():
|
|||
parser.add_argument("actions", metavar="ACTION",
|
||||
type=str, default=[], nargs="+",
|
||||
help="actions to perform, sequence of: "
|
||||
"build clean reset flash flash+log connect hotswap")
|
||||
"build clean reset flash flash+log load connect hotswap")
|
||||
|
||||
return parser
|
||||
|
||||
|
@ -199,6 +199,10 @@ def main():
|
|||
flash("start")
|
||||
client.drain(flterm)
|
||||
|
||||
elif action == "load":
|
||||
logger.info("Loading gateware")
|
||||
flash("load")
|
||||
|
||||
elif action == "connect":
|
||||
lock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue