examples: Do not re-prompt the finger when repeating verification

Let's assume the user will want to re-scan the same finger rather than
being prompted again to change it.
This commit is contained in:
Benjamin Berg 2020-01-02 18:44:34 +01:00
parent 516c1593bb
commit 87dee93633

View file

@ -165,8 +165,11 @@ on_list_completed (FpDevice *dev, GAsyncResult *res, gpointer user_data)
static void
start_verification (FpDevice *dev, VerifyData *verify_data)
{
g_print ("Choose the finger to verify:\n");
verify_data->finger = finger_chooser ();
if (verify_data->finger == FP_FINGER_UNKNOWN)
{
g_print ("Choose the finger to verify:\n");
verify_data->finger = finger_chooser ();
}
if (verify_data->finger == FP_FINGER_UNKNOWN)
{