From 37a7a65674fc1e3134ec07868fe9cc58e20583f3 Mon Sep 17 00:00:00 2001 From: saeedark Date: Wed, 29 Oct 2025 23:07:40 +0330 Subject: [PATCH] tmp: removing persistent api for now --- libfprint/drivers/egis0570.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/egis0570.c b/libfprint/drivers/egis0570.c index 9b570a78..f260e2d5 100644 --- a/libfprint/drivers/egis0570.c +++ b/libfprint/drivers/egis0570.c @@ -1314,6 +1314,7 @@ dev_init (FpImageDevice *dev) memcpy (self->query_pkts, init_pkts, EGIS0570_INIT_TOTAL * EGIS0570_PKTSIZE); fp_dbg ("initialization"); + switch (fpi_device_get_driver_data (FP_DEVICE (dev))) { case PACKET_VERSION_1: @@ -1326,7 +1327,13 @@ dev_init (FpImageDevice *dev) gsize length; // check if caliberation happend - if (fp_device_get_persistent_data (FP_DEVICE (dev), &self->persistent_data, &length, &error)) + + // TODO comment next line + length = 0; + + // TODO change the if part. + // if (fp_device_get_persistent_data (FP_DEVICE (dev), &self->persistent_data, &length, &error)) + if (TRUE) { if (length == PRESISTENT_DATA_LENGTH) {