Skip to content

Commit

Permalink
Correct naming error in exception-showing
Browse files Browse the repository at this point in the history
Late edit to #437 missed a rename of `num` to `exc_num` - code was
showing external interrupts successfully, but trapped if faced with an
internal exception.
  • Loading branch information
kjbracey authored and flit committed Nov 16, 2018
1 parent f29c141 commit 820d02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyocd/coresight/cortex_m.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def exception_number_to_name(self, exc_num, name_thread=False):
if exc_num == 0 and not name_thread:
return None
else:
return self.CORE_EXCEPTION[num]
return self.CORE_EXCEPTION[exc_num]
else:
irq_num = exc_num - len(self.CORE_EXCEPTION)
name = None
Expand Down

0 comments on commit 820d02a

Please sign in to comment.