mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
imgdev: reset action_result after reporting it
Otherwise we end up in reporting the same result on next iteration.
This commit is contained in:
@@ -164,15 +164,18 @@ void fpi_imgdev_report_finger_status(struct fp_img_dev *imgdev,
|
|||||||
break;
|
break;
|
||||||
case IMG_ACTION_VERIFY:
|
case IMG_ACTION_VERIFY:
|
||||||
fpi_drvcb_report_verify_result(imgdev->dev, r, img);
|
fpi_drvcb_report_verify_result(imgdev->dev, r, img);
|
||||||
|
imgdev->action_result = 0;
|
||||||
fp_print_data_free(data);
|
fp_print_data_free(data);
|
||||||
break;
|
break;
|
||||||
case IMG_ACTION_IDENTIFY:
|
case IMG_ACTION_IDENTIFY:
|
||||||
fpi_drvcb_report_identify_result(imgdev->dev, r,
|
fpi_drvcb_report_identify_result(imgdev->dev, r,
|
||||||
imgdev->identify_match_offset, img);
|
imgdev->identify_match_offset, img);
|
||||||
|
imgdev->action_result = 0;
|
||||||
fp_print_data_free(data);
|
fp_print_data_free(data);
|
||||||
break;
|
break;
|
||||||
case IMG_ACTION_CAPTURE:
|
case IMG_ACTION_CAPTURE:
|
||||||
fpi_drvcb_report_capture_result(imgdev->dev, r, img);
|
fpi_drvcb_report_capture_result(imgdev->dev, r, img);
|
||||||
|
imgdev->action_result = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fp_err("unhandled action %d", imgdev->action);
|
fp_err("unhandled action %d", imgdev->action);
|
||||||
|
|||||||
Reference in New Issue
Block a user