diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index 6b08daa..101525b 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -232,9 +232,9 @@ void pn53x_usb_disconnect(nfc_device_t* pnd) if((ret = usb_release_interface(pus->pudh,0)) < 0) DBG("usb_release failed %i",ret); DBG("%s","resetting USB"); - usb_reset(pus->pudh); if((ret = usb_close(pus->pudh)) < 0) DBG("usb_close failed %i",ret); + usb_reset(pus->pudh); free(pnd->nds); free(pnd); DBG("%s","done!");