From 62d01a1f179c31edf92906e1440555b06b155e14 Mon Sep 17 00:00:00 2001 From: bailu1992 Date: Wed, 12 Jun 2024 12:05:36 +0800 Subject: [PATCH] The miscdevice alarm is modified Signed-off-by: bailu1992 --- utils/haptic_decoder/interface/vibrator_decoder_creator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp b/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp index d711563..2d08747 100644 --- a/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp +++ b/utils/haptic_decoder/interface/vibrator_decoder_creator.cpp @@ -30,10 +30,10 @@ namespace Sensors { namespace { const std::string JSON_TAG = "Channels"; } // namespace -IVibratorDecoder *VibratorDecoderCreator::CreateDecoder(const RawFileDescriptor &fd) +IVibratorDecoder *VibratorDecoderCreator::CreateDecoder(const RawFileDescriptor &rawFd) { CALL_LOG_ENTER; - DecoderType type = GetDecoderType(fd); + DecoderType type = GetDecoderType(rawFd); if (type == DECODER_TYPE_HE) { MISC_HILOGD("Get he type"); HEVibratorDecoderFactory factory; @@ -43,7 +43,7 @@ IVibratorDecoder *VibratorDecoderCreator::CreateDecoder(const RawFileDescriptor DefaultVibratorDecoderFactory factory; return factory.CreateDecoder(); } - JsonParser parser(fd); + JsonParser parser(rawFd); if (CheckJsonMetadata(parser)) { MISC_HILOGD("Get oh_json tag"); DefaultVibratorDecoderFactory factory; -- Gitee