mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-15 00:44:25 +09:00
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:
committed by
Marco Trevisan
parent
b5496fd257
commit
c1e832e7a7
@@ -545,7 +545,7 @@ fp_device_get_finger_status (FpDevice *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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user