Skip to content

Commit

Permalink
Fix a couple of flake8 Python warnings (#13763)
Browse files Browse the repository at this point in the history
* Tools: fix flake8 error

* platforms: fix flake8 error

This is just guessed.
  • Loading branch information
julianoes authored Dec 19, 2019
1 parent 6dc55f9 commit a9ca16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tools/uorb_graph/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def _process_source_file(self, file_name):
try:
content = f.read()
except:
print('Failed reading file: %s, skipping content.' % path)
print('Failed reading file: %s, skipping content.' % file_name)
return


Expand Down
3 changes: 2 additions & 1 deletion platforms/nuttx/Debug/Nuttx.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ def invoke(self,args,sth):
tasks = NX_task.tasks()
print("tcb int: ",int(args))
print(tasks[int(args)]._tcb)
a =tasks[int(args)]._tcb['xcp']['regs']
a = tasks[int(args)]._tcb['xcp']['regs']
print("relevant registers:")
regmap = NX_register_set.v7em_regmap
for reg in regmap:
hex_addr= hex(int(a[regmap[reg]]))
eval_string = 'info line *'+str(hex_addr)
Expand Down

0 comments on commit a9ca16c

Please sign in to comment.