chenluhua1980
2026-01-09 03dc81df7fe0ea0e754abcc5af3d329527428853
SourceCode/Bond/Servo/CEquipment.cpp
@@ -1608,8 +1608,11 @@
      std::vector<CParam> tempParams;
      this->parsingProcessData((const char*)rawData.data(), rawData.size(), tempParams);
      int n = processData.getTotalParameter();
      std::vector<CParam> params(tempParams.begin(), tempParams.begin() + min(n, (int)tempParams.size()));
      std::vector<CParam> params(tempParams.begin(), tempParams.begin() + (std::min)(n, (int)tempParams.size()));
      pGlass->addParams(params);
      if (m_listener.onProcessDataReport != nullptr) {
         m_listener.onProcessDataReport(this, params);
      }
      
      // 关联的Glass也要更新
      CGlass* pBuddy = pGlass->getBuddy();
@@ -1617,6 +1620,9 @@
      if (pBuddy != nullptr) {
         LOGI("<Equipment-%s>decodeProcessDataReport addParams pBuddy=%x %s", getName().c_str(), pBuddy, pGlass->getID().c_str());
         pBuddy->addParams(params);
         if (m_listener.onProcessDataReport != nullptr) {
            m_listener.onProcessDataReport(this, params);
         }
      }
      return nRet;