From 1cd6a1d52fc7c971149d53b099b520dbddccf94a Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 20 Mar 2024 00:00:13 +0100 Subject: [PATCH] sm8450-common: udfps: Enforce high brightness while enrolling Change-Id: I960c78fc28ea3053527ab3bb790cc028454b222b --- udfps/UdfpsHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udfps/UdfpsHandler.cpp b/udfps/UdfpsHandler.cpp index c1cdd5e..e1099e1 100644 --- a/udfps/UdfpsHandler.cpp +++ b/udfps/UdfpsHandler.cpp @@ -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;