sm8450-common: udfps: Enforce high brightness while enrolling

Change-Id: I960c78fc28ea3053527ab3bb790cc028454b222b
This commit is contained in:
Arian 2024-03-20 00:00:13 +01:00
parent 880093b16b
commit 1cd6a1d52f

View file

@ -145,7 +145,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
brightness = brightness_req.brightness;
}
LOG(DEBUG) << "brightness is: " << (int)brightness_req.brightness;
bool requestLowBrightness = brightness < LOW_BRIGHTNESS_THRESHHOLD;
bool requestLowBrightness = !enrolling && brightness < LOW_BRIGHTNESS_THRESHHOLD;
// Request HBM
disp_local_hbm_req req;