upekts: Only release USB interface on exit
The device is already beeing de-initialised from the verify/enroll commands. Trying it again will result in a timeout error as it is not responding properly at that point.
This commit is contained in:
parent
8f46de0a60
commit
b3565b83e1
1 changed files with 4 additions and 11 deletions
|
@ -856,21 +856,14 @@ dev_init (FpDevice *dev)
|
||||||
fpi_ssm_start (ssm, initsm_done);
|
fpi_ssm_start (ssm, initsm_done);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
deinitsm_done (FpiSsm *ssm, FpDevice *dev, GError *error)
|
|
||||||
{
|
|
||||||
g_usb_device_release_interface (fpi_device_get_usb_device (dev), 0, 0, NULL);
|
|
||||||
|
|
||||||
fpi_device_close_complete (dev, error);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dev_exit (FpDevice *dev)
|
dev_exit (FpDevice *dev)
|
||||||
{
|
{
|
||||||
FpiSsm *ssm;
|
GError *error = NULL;
|
||||||
|
|
||||||
ssm = fpi_ssm_new (dev, deinitsm_state_handler, DEINITSM_NUM_STATES);
|
g_usb_device_release_interface (fpi_device_get_usb_device (dev), 0, 0, &error);
|
||||||
fpi_ssm_start (ssm, deinitsm_done);
|
|
||||||
|
fpi_device_close_complete (dev, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const unsigned char enroll_init[] = {
|
static const unsigned char enroll_init[] = {
|
||||||
|
|
Loading…
Reference in a new issue