mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-04-29 01:10:42 +02:00
Don't try to clear storage on devices without internal storage
This change prevents warnings like 'Failed to clear storage before first enrollment: Device has no storage.'.
This commit is contained in:
parent
0d2e2a6742
commit
3633dbaa63
1 changed files with 2 additions and 1 deletions
|
|
@ -2209,7 +2209,8 @@ fprint_device_enroll_start (FprintDBusDevice *dbus_dev,
|
|||
priv->enroll_data = finger;
|
||||
priv->current_action = ACTION_ENROLL;
|
||||
|
||||
if (!fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE_LIST) &&
|
||||
if (fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE) &&
|
||||
!fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE_LIST) &&
|
||||
is_first_enrollment (rdev))
|
||||
{
|
||||
g_autoptr(GError) clear_err = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue