mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
elan: Add a few comments that stopping/callibrating helps
Apparently stopping/callibrating helps with the reliability of these sensors. Add a few comments so that this information is known. See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/216#note_619467
This commit is contained in:
@@ -607,6 +607,10 @@ capture_complete (FpiSsm *ssm, FpDevice *_dev, GError *error)
|
||||
fpi_image_device_session_error (dev, error);
|
||||
}
|
||||
|
||||
/* Note: We always stop capturing even if that may not be needed always.
|
||||
* Doing this between captures appears to make it at least less likely for
|
||||
* devices to end up in a bad state.
|
||||
*/
|
||||
elan_stop_capture (self);
|
||||
}
|
||||
|
||||
@@ -955,6 +959,10 @@ dev_change_state (FpImageDevice *dev, FpiImageDeviceState state)
|
||||
|
||||
G_DEBUG_HERE ();
|
||||
|
||||
/* Note: We always calibrate even if that may not be needed always.
|
||||
* Doing this for each capture appears to make it at least less likely for
|
||||
* devices to end up in a bad state.
|
||||
*/
|
||||
if (state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
|
||||
elan_calibrate (self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user