mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-04-02 15:50:38 +02:00
fix print description
This commit is contained in:
parent
5d84fb8820
commit
8598d3b19f
1 changed files with 6 additions and 6 deletions
|
|
@ -910,7 +910,6 @@ egis_etu905_enroll_begin_cb (FpDevice *device,
|
|||
read &= fpi_byte_reader_set_pos (&reader, EGIS_ETU905_LIST_RESPONSE_PREFIX_SIZE);
|
||||
|
||||
const guint8 *data = NULL;
|
||||
g_autofree gchar *print_id = NULL;
|
||||
|
||||
read &= fpi_byte_reader_get_data (&reader, EGIS_ETU905_FINGERPRINT_DATA_SIZE,
|
||||
&data);
|
||||
|
|
@ -1128,12 +1127,14 @@ egis_etu905_enroll_run_state (FpiSsm *ssm,
|
|||
break;
|
||||
|
||||
case ENROLL_COMMIT:
|
||||
user_id = fpi_print_generate_user_id (enroll_print->print);
|
||||
fp_dbg ("New fingerprint ID: %s", user_id);
|
||||
|
||||
sid_data.reserve_para_1 = EGIS_ETU905_PARA_1_VALUE;
|
||||
sid_data.reserve_para_2 = EGIS_ETU905_PARA_2_VALUE;
|
||||
sid_data.reserve_para_3 = EGIS_ETU905_PARA_3_VALUE;
|
||||
memcpy (sid_data.reserve_para_4, self->sid, EGIS_ETU905_FINGERPRINT_DATA_SIZE);
|
||||
|
||||
egis_etu905_set_print_data (enroll_print->print, (const gchar *) &sid_data.reserve_para_4, NULL);
|
||||
memcpy (sid_data.reserve_para_4, user_id, MIN(EGIS_ETU905_FINGERPRINT_DATA_SIZE, strlen(user_id)));
|
||||
egis_etu905_set_print_data (enroll_print->print, (const gchar *) &sid_data.reserve_para_4, user_id);
|
||||
fpi_byte_writer_init (&writer);
|
||||
if (!fpi_byte_writer_put_data (&writer, cmd_new_print_prefix_type2,
|
||||
cmd_new_print_prefix_type2_len))
|
||||
|
|
@ -1641,8 +1642,7 @@ fpi_device_egis_etu905_class_init (FpiDeviceEgisEtu905Class *klass)
|
|||
dev_class->scan_type = FP_SCAN_TYPE_PRESS;
|
||||
dev_class->id_table = egis_etu905_id_table;
|
||||
dev_class->nr_enroll_stages = EGIS_ETU905_MAX_ENROLL_STAGES_DEFAULT;
|
||||
/* device should be "always off" unless being used */
|
||||
dev_class->temp_hot_seconds = 0;
|
||||
dev_class->temp_hot_seconds = -1;
|
||||
|
||||
dev_class->probe = egis_etu905_probe;
|
||||
dev_class->open = egis_etu905_open;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue