From ab1479a597dc2a6991a2647dd9016de36ae07455 Mon Sep 17 00:00:00 2001 From: zhouyanxu Date: Mon, 21 Aug 2023 15:27:00 +0800 Subject: [PATCH] add vib Signed-off-by: zhouyanxu --- framework/model/misc/vibrator/driver/src/vibrator_parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/model/misc/vibrator/driver/src/vibrator_parser.c b/framework/model/misc/vibrator/driver/src/vibrator_parser.c index c233e15c5..5ba84a292 100755 --- a/framework/model/misc/vibrator/driver/src/vibrator_parser.c +++ b/framework/model/misc/vibrator/driver/src/vibrator_parser.c @@ -41,9 +41,7 @@ static int32_t ParseVibratorInfo(struct DeviceResourceIface *parser, const struc CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(config, HDF_ERR_INVALID_PARAM); ret = parser->GetBool(infoNode, "isSupportIntensity"); - CHECK_VIBRATOR_PARSER_RESULT_RETURN_VALUE(ret, "isSupportIntensity"); ret = parser->GetBool(infoNode, "isSupportFrequency"); - CHECK_VIBRATOR_PARSER_RESULT_RETURN_VALUE(ret, "isSupportFrequency"); ret = parser->GetUint16(infoNode, "intensityMaxValue", (uint16_t *)&config->vibratorInfo.intensityMaxValue, 0); CHECK_VIBRATOR_PARSER_RESULT_RETURN_VALUE(ret, "intensityMaxValue"); ret = parser->GetUint16(infoNode, "intensityMinValue", (uint16_t *)&config->vibratorInfo.intensityMinValue, 0); -- Gitee