mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +08:00
Fix a couple of flake8 Python warnings (#13763)
* Tools: fix flake8 error * platforms: fix flake8 error This is just guessed.
This commit is contained in:
@@ -366,7 +366,7 @@ class Graph(object):
|
||||
try:
|
||||
content = f.read()
|
||||
except:
|
||||
print('Failed reading file: %s, skipping content.' % path)
|
||||
print('Failed reading file: %s, skipping content.' % file_name)
|
||||
return
|
||||
|
||||
|
||||
|
||||
@@ -414,8 +414,9 @@ class NX_check_tcb(gdb.Command):
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user