longer timeout seems necessary
This commit is contained in:
parent
6664444ab7
commit
72fa49206d
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class PN532:
|
||||||
"""Call PN532 GetFirmwareVersion function and return a tuple with the IC,
|
"""Call PN532 GetFirmwareVersion function and return a tuple with the IC,
|
||||||
Ver, Rev, and Support values.
|
Ver, Rev, and Support values.
|
||||||
"""
|
"""
|
||||||
response = self.call_function(_COMMAND_GETFIRMWAREVERSION, 4, timeout=0.1)
|
response = self.call_function(_COMMAND_GETFIRMWAREVERSION, 4, timeout=0.5)
|
||||||
if response is None:
|
if response is None:
|
||||||
raise RuntimeError('Failed to detect the PN532')
|
raise RuntimeError('Failed to detect the PN532')
|
||||||
return tuple(response)
|
return tuple(response)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue