diff --git a/libfprint/fp-device.h b/libfprint/fp-device.h index 9dda747c..937866dd 100644 --- a/libfprint/fp-device.h +++ b/libfprint/fp-device.h @@ -113,6 +113,8 @@ typedef enum { * @FP_DEVICE_RETRY_REMOVE_FINGER: The scan did not succeed due to quality or * pressure problems; the user should remove their finger from the scanner * before retrying. + * @FP_DEVICE_RETRY_TOO_FAST: The scan did not succeed because the finger + * swipe was too fast. * * Error codes representing scan failures resulting in the user needing to * retry. @@ -122,6 +124,7 @@ typedef enum { FP_DEVICE_RETRY_TOO_SHORT, FP_DEVICE_RETRY_CENTER_FINGER, FP_DEVICE_RETRY_REMOVE_FINGER, + FP_DEVICE_RETRY_TOO_FAST, } FpDeviceRetry; /** diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c index 213a6bfd..a1be30c0 100644 --- a/libfprint/fpi-device.c +++ b/libfprint/fpi-device.c @@ -117,6 +117,10 @@ fpi_device_retry_new (FpDeviceRetry error) msg = "Please try again after removing the finger first."; break; + case FP_DEVICE_RETRY_TOO_FAST: + msg = "The swipe was too fast, please try again."; + break; + default: g_warning ("Unsupported error, returning general error instead!"); error = FP_DEVICE_RETRY_GENERAL;