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:
parent
b5496fd257
commit
c1e832e7a7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue