Skip to content

Commit

Permalink
Fix for register reset in runtime CLI
Browse files Browse the repository at this point in the history
Currently register reset throws a:
File "/usr/local/lib/python2.7/dist-packages/runtime_CLI.py", line 1985, in do_register_reset
    self.client.bm_register_reset(0, register.name)
NameError: global name 'register' is not defined
The fix follows does the same thing as the other register operations.
  • Loading branch information
gnikol authored and antoninbas committed Jul 23, 2018
1 parent 1be2133 commit 3cf0216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/runtime_CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1982,6 +1982,8 @@ def do_register_reset(self, line):
args = line.split()
self.exactly_n_args(args, 1)
register_name = args[0]
register = self.get_res("register", register_name,
ResType.register_array)
self.client.bm_register_reset(0, register.name)

def complete_register_reset(self, text, line, start_index, end_index):
Expand Down

0 comments on commit 3cf0216

Please sign in to comment.