Remove usb_reset() call: this function always failed.

This commit is contained in:
Romuald Conty 2010-08-11 16:44:34 +00:00
parent d11e7a1320
commit 2029e0c66f

View file

@ -2,6 +2,7 @@
* Public platform independent Near Field Communication (NFC) library * Public platform independent Near Field Communication (NFC) library
* *
* Copyright (C) 2009, Roel Verdult * Copyright (C) 2009, Roel Verdult
* Copyright (C) 2010, Romain Tartière, Romuald Conty
* *
* This program is free software: you can redistribute it and/or modify it * This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the * under the terms of the GNU Lesser General Public License as published by the
@ -219,16 +220,17 @@ void pn53x_usb_disconnect(nfc_device_t* pnd)
int ret; int ret;
if((ret = usb_release_interface(pus->pudh,0)) < 0) { if((ret = usb_release_interface(pus->pudh,0)) < 0) {
DBG("usb_release failed %i",ret); ERR("usb_release_interface failed (%i)",ret);
} }
if((ret = usb_close(pus->pudh)) < 0) { if((ret = usb_close(pus->pudh)) < 0) {
DBG("usb_close failed %i",ret); ERR("usb_close failed (%i)",ret);
} }
/*
DBG("%s","resetting USB"); if((ret = usb_reset(pus->pudh)) < 0) {
usb_reset(pus->pudh); ERR("usb_reset failed (%i, if errno: %s)",ret, strerror(-ret));
}
*/
free(pnd->nds); free(pnd->nds);
free(pnd); free(pnd);
} }