chenluhua1980
6 天以前 d400f022161ff47f02cd0ea95a5076d0187ecd4d
SourceCode/Bond/Servo/CEFEM.cpp
@@ -713,14 +713,27 @@
                  // Reserved               15W
                  short ack = (short)JobDataRequestAck::NG;      // 不存在jobData
                  char szBuffer[1024] = { 0 };
                  LOGI("<CEFEM-%s>JobDataRequest received (code=%d, size=%zu)", m_strName.c_str(), code, size);
                  if (m_pActiveContext != nullptr) {
                     CJobDataS* pJobDataS = ((CGlass*)m_pActiveContext)->getJobDataS();
                     LOGI("<CEFEM-%s>JobDataRequest GlassID=%s", m_strName.c_str(), ((CGlass*)m_pActiveContext)->getID().c_str());
                     if (pJobDataS != nullptr) {
                        pJobDataS->serialize(szBuffer, 1024);
                        ack = (short)JobDataRequestAck::OK;
                        LOGI("<CEFEM-%s>JobDataRequest OK (CassetteSeq=%d, JobSeq=%d)",
                           m_strName.c_str(),
                           pJobDataS->getCassetteSequenceNo(),
                           pJobDataS->getJobSequenceNo());
                     }
                     else {
                        LOGW("<CEFEM-%s>JobDataRequest NG (JobDataS is null)", m_strName.c_str());
                     }
                  }
                  else {
                     LOGW("<CEFEM-%s>JobDataRequest NG (ActiveContext is null)", m_strName.c_str());
                  }
                  memcpy(&szBuffer[320 * 2], &ack, sizeof(short));
                  LOGI("<CEFEM-%s>JobDataRequest response ack=%d", m_strName.c_str(), (int)ack);
                  ((CEqReadStep*)pFrom)->setReturnData(szBuffer, 336 * 2);
               }
               return -1;