synaptics: Really check if a print is device database

Fix a typo causing the not-in-database print error to be fired, actually
checking the response result.
This commit is contained in:
Marco Trevisan (Treviño) 2020-01-16 19:09:20 +01:00 committed by Marco Trevisan
parent b9e546f05b
commit 4d6a7ec09d

View file

@ -631,7 +631,7 @@ verify_msg_cb (FpiDeviceSynaptics *self,
self->cmd_complete_data = GINT_TO_POINTER (FPI_MATCH_FAIL);
self->cmd_complete_error = NULL;
}
else if (BMKT_FP_DATABASE_NO_RECORD_EXISTS)
else if (resp->result == BMKT_FP_DATABASE_NO_RECORD_EXISTS)
{
fp_info ("Print is not in database");
fpi_device_verify_complete (device,