imgdev: reset action_result after reporting it

Otherwise we end up in reporting the same result on next iteration.
This commit is contained in:
Vasily Khoruzhick 2015-04-01 13:39:54 +03:00
parent a656a4a9f3
commit d9567002e4

View file

@ -164,15 +164,18 @@ void fpi_imgdev_report_finger_status(struct fp_img_dev *imgdev,
break;
case IMG_ACTION_VERIFY:
fpi_drvcb_report_verify_result(imgdev->dev, r, img);
imgdev->action_result = 0;
fp_print_data_free(data);
break;
case IMG_ACTION_IDENTIFY:
fpi_drvcb_report_identify_result(imgdev->dev, r,
imgdev->identify_match_offset, img);
imgdev->action_result = 0;
fp_print_data_free(data);
break;
case IMG_ACTION_CAPTURE:
fpi_drvcb_report_capture_result(imgdev->dev, r, img);
imgdev->action_result = 0;
break;
default:
fp_err("unhandled action %d", imgdev->action);