Sensor: (1/1) fix issue - CapSensor calibration value is incorrect first time
authorlitao2 <litao2@huaqin.com>
Sat, 12 Jan 2019 06:47:43 +0000 (14:47 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:35 +0000 (17:30 +0800)
After writing calibration command to CMD register, user must wait 1.5 seconds
at least for calibration complete.

Bug:EKKANE-511

Workaround:no

Change-Id: I8af3a56bce69b3d5b74d4fefd41cdddb3331451f
Signed-off-by: litao2 <litao2@huaqin.com>
drivers/input/misc/sx933x_sar.c

index 943ad17acfa6c9fa9968b7320a8d6b3a7c002c09..8daec35b34f4cbbcc05ab8360dffbd5fa53e8145 100755 (executable)
@@ -310,6 +310,8 @@ static ssize_t manual_offset_calibration_store(struct device *dev,
        if (val)
                manual_offset_calibration(this);
 
+       msleep(1500);
+
        return count;
 }
 /****************************************************************************/