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:
parent
fe498c56c7
commit
656bf3d175
1 changed files with 8 additions and 0 deletions
|
@ -607,6 +607,10 @@ capture_complete (FpiSsm *ssm, FpDevice *_dev, GError *error)
|
||||||
fpi_image_device_session_error (dev, 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);
|
elan_stop_capture (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -955,6 +959,10 @@ dev_change_state (FpImageDevice *dev, FpiImageDeviceState state)
|
||||||
|
|
||||||
G_DEBUG_HERE ();
|
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)
|
if (state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
|
||||||
elan_calibrate (self);
|
elan_calibrate (self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue