fp-device: Return valid finger status value on error

Not that the two enums have different value, but indeed the type is
wrong.
This commit is contained in:
Marco Trevisan (Treviño) 2020-12-04 00:53:29 +01:00 committed by Marco Trevisan
parent b5496fd257
commit c1e832e7a7

View file

@ -545,7 +545,7 @@ fp_device_get_finger_status (FpDevice *device)
{ {
FpDevicePrivate *priv = fp_device_get_instance_private (device); FpDevicePrivate *priv = fp_device_get_instance_private (device);
g_return_val_if_fail (FP_IS_DEVICE (device), FP_SCAN_TYPE_SWIPE); g_return_val_if_fail (FP_IS_DEVICE (device), FP_FINGER_STATUS_NONE);
return priv->finger_status; return priv->finger_status;
} }