Skip to content

Commit

Permalink
Merge pull request #14 from eldonrivers/master
Browse files Browse the repository at this point in the history
Support 'nxp' as another freescale/kinetis name
  • Loading branch information
sstallion authored Jan 5, 2018
2 parents 001fc45 + 47fd3cb commit f61b61c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylink/unlockers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def unlock(jlink, name):
Raises:
NotImplementedError: if no unlock method exists for the MCU.
"""
if name.lower() == 'kinetis' or name.lower() == 'freescale':
if name.lower() in ['kinetis', 'freescale', 'nxp']:
return unlock_kinetis(jlink)
raise NotImplementedError('No unlock method for %s' % name)
2 changes: 1 addition & 1 deletion tests/unit/unlockers/test_unlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_unlock_supported(self, mock_unlock):
`None`
"""
jlink = mock.Mock()
supported = ['Kinetis', 'kinetis']
supported = ['Kinetis', 'kinetis', 'NXP']
mock_unlock.return_value = True
for mcu in supported:
self.assertTrue(unlock.unlock(jlink, mcu))
Expand Down

0 comments on commit f61b61c

Please sign in to comment.