From 9d9f6bf03bfce0cba7543498bee3c2132bf96bc1 Mon Sep 17 00:00:00 2001 From: chenchong Date: Tue, 14 Dec 2021 20:36:46 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9Amodify=20sensor=20als=20driver=20?= =?UTF-8?q?style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenchong --- model/sensor/driver/chipset/als/als_bh1745.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/sensor/driver/chipset/als/als_bh1745.c b/model/sensor/driver/chipset/als/als_bh1745.c index ff997776..02169fe2 100755 --- a/model/sensor/driver/chipset/als/als_bh1745.c +++ b/model/sensor/driver/chipset/als/als_bh1745.c @@ -82,6 +82,7 @@ static int32_t DynamicRangCovert(struct SensorCfgData *CfgData, uint32_t *rgbcDa g_timeMap_flag = 1; index = GetRegGroupIndexByTime(temp, g_timeMap, timeItemNum); index--; + WriteSensorRegCfgArray(&CfgData->busCfg, timeGroupNode, index, sizeof(uint8_t)); } else if ((g_timeMap_flag == 1) && ((rgbcData[ALS_R] * BH1745_MULTIPLE_100 < BH1745_TIME_MIN) || (rgbcData[ALS_G] * BH1745_MULTIPLE_100 < BH1745_TIME_MIN))) { @@ -135,7 +136,7 @@ static uint32_t CalLux(struct SensorCfgData *CfgData, uint32_t *rgbcData) GroupNode = CfgData->extendedRegCfgGroup[EXTENDED_ALS_GAIN_GROUP]; itemNum = GroupNode->itemNum; if (timeItemNum > EXTENDED_ALS_GAIN_GROUP_INDEX_MAX) { - HDF_LOGE("%s: TimeItemNum out of range ", __func__); + HDF_LOGE("%s: ItemNum out of range ", __func__); return HDF_FAILURE; }