Skip to content

Commit 5a69b16

Browse files
authored
Merge pull request #1035 from flit/bugfix/cmd_no_init_fixes
Commander wreg with peripheral register fix
2 parents 6125ba2 + 4478502 commit 5a69b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyocd/commands/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def execute(self):
319319
else:
320320
raise exceptions.CommandError("too many dots")
321321
self.context.target.flush()
322-
if do_readback:
322+
if self.do_readback:
323323
self._dump_peripheral_register(p, r, True)
324324
else:
325325
raise exceptions.CommandError("invalid register '%s' for %s" % (subargs[1], p.name))

0 commit comments

Comments
 (0)