Sensor: (1/1) fix issue - CapSensor PHx diff value is incorrect first time
authorlitao2 <litao2@huaqin.com>
Wed, 16 Jan 2019 07:45:41 +0000 (15:45 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:54 +0000 (17:36 +0800)
After calibration complete, user must wait 1.5 secondsat least for first
variational PHx diff value. Otherwise PHx diff is 0.

Bug:(CR)

Workaround:no

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

index 8daec35b34f4cbbcc05ab8360dffbd5fa53e8145..f87adffd6edd89ef5e8b10db1fb1125f12c105da 100755 (executable)
@@ -530,6 +530,9 @@ static ssize_t sx933x_diff_data_show(struct device *dev, struct device_attribute
        s32 diff;
        u32 uData;
        psx93XX_t this = dev_get_drvdata(dev);
+
+       msleep(1500);
+
        if(this) {
                for(csx =0; csx<5; csx++) {
                        sx933x_i2c_read_16bit(this, SX933X_DIFFPH0_REG + csx*4, &uData);