Skip to content

Commit

Permalink
also raise ENODEV when PN532 initialized for native USB transport
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen.tiedemann@gmail.com committed Oct 2, 2015
1 parent d57430d commit 0c00de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nfc/clf/pn532.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,5 @@ def init(transport):

chipset = Chipset(transport, logger=log)
return Device(chipset, logger=log)

raise IOError(errno.ENODEV, os.strerror(errno.ENODEV))

0 comments on commit 0c00de8

Please sign in to comment.