Skip to content

Commit 687f64d

Browse files
committed
app-write-mram.py: Rename serial port arg to -p,--port.
1 parent 4fee105 commit 687f64d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

toolkit/app-write-mram.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def main():
139139
parser = argparse.ArgumentParser(
140140
description="NVM Burner for Application TOC Package"
141141
)
142-
parser.add_argument("-d", "--device", type=str, help="serial port device")
142+
parser.add_argument(
143+
"-p", "--port", type=str, help="Serial port device", required=True
144+
)
143145
parser.add_argument("-b", "--baudrate", help="serial port baud rate", type=int)
144146
parser.add_argument(
145147
"-e",
@@ -366,7 +368,7 @@ def main():
366368
isp.discoverSerialPorts()
367369
"""
368370

369-
errorCode = isp.openSerial(args.device)
371+
errorCode = isp.openSerial(args.port)
370372
if errorCode is False:
371373
print("[ERROR] isp openSerial failed for %s" % isp.getPort())
372374
sys.exit(EXIT_WITH_ERROR)

0 commit comments

Comments
 (0)