fix squiggly start
This commit is contained in:
parent
faaf7fad4d
commit
76a7ff5aab
1 changed files with 6 additions and 1 deletions
|
@ -167,6 +167,11 @@ class PN532_I2C(object):
|
|||
self.debug = debug
|
||||
self._i2c = i2c_device.I2CDevice(i2c, _I2C_ADDRESS)
|
||||
self._irq = irq
|
||||
try:
|
||||
self.get_firmware_version() # first time often fails, try 2ce
|
||||
return
|
||||
except:
|
||||
pass
|
||||
self.get_firmware_version()
|
||||
|
||||
def _write_frame(self, data):
|
||||
|
|
Loading…
Reference in a new issue