diff options
Diffstat (limited to 'driver/als_si114x.c')
-rw-r--r-- | driver/als_si114x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/als_si114x.c b/driver/als_si114x.c index 17f178080f..be3f090db3 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -295,6 +295,7 @@ static int read(const struct motion_sensor_t *s, intv3_t v) case SI114X_NOT_READY: ret = EC_ERROR_NOT_POWERED; } +#if 0 /* This code is incorrect https://crbug.com/956569 */ if (ret == EC_ERROR_ACCESS_DENIED && s->type == MOTIONSENSE_TYPE_LIGHT) { timestamp_t ts_now = get_time(); @@ -315,6 +316,7 @@ static int read(const struct motion_sensor_t *s, intv3_t v) init(s); } } +#endif return ret; } |