kopia lustrzana https://github.com/micropython/micropython
tools/pydfu: Raise exception when uploading binary without address.
Signed-off-by: Tadeas Pilar <tadeas.pilar@prusa3d.cz>pull/12470/head
rodzic
b773507443
commit
296a774e72
|
@ -624,7 +624,7 @@ def main():
|
|||
if args.path:
|
||||
if str(args.path).endswith(".bin"):
|
||||
if not args.address:
|
||||
return
|
||||
raise ValueError("Address must be specified using -a when uploading binary")
|
||||
addr = str(args.address)
|
||||
if addr.startswith("0x") or addr.startswith("0X"):
|
||||
addr = int(addr, 16)
|
||||
|
|
Ładowanie…
Reference in New Issue