8000 Fix nvreadsub: repair arg dispatch and widen NV item/index to uint32 by capiman · Pull Request #822 · bkerler/edl · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions edlclient/Tools/qc_diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
]

subnvitem_type = [
("item", "H"),
("index", "H"),
("item", "I"),
("index", "I"),
("rawdata", "128s"),
("status", "H")
]
Expand Down Expand Up @@ -1250,12 +1250,11 @@ def run(self, args):
if args.nvitem is None or args.nvindex is None:
print("Usage: nvreadsub [nvitem] [nvindex]")
exit(1)
nv = args.nvreadsub.split(",")
if "0x" in args.nvitem:
nvitem = int(args.nvitem, 16)
else:
nvitem = int(args.nvitem)
if "0x" in nv[1]:
if "0x" in args.nvindex:
nvindex = int(args.nvindex, 16)
else:
nvindex = int(args.nvindex)
Expand Down
0