SourceCode/Bond/Servo/CBonder.cpp
@@ -193,12 +193,13 @@
         // master recipe list report
         CEqReadStep* pStep = new CEqReadStep(m_nIndex == 0 ? 0xa955 : 0xe955, 255 * 2,
            [&](void* pFrom, int code, const char* pszData, size_t size) -> int {
               CEqReadStep* pTmpStep = (CEqReadStep*)pFrom;
               short ret = MRLRC_OK;
               if (code == ROK && pszData != nullptr && size > 0) {
                  // 此处解释配方数据
                  short ret = decodeRecipeListReport(pszData, size);
                  pStep->setReturnCode(ret);
                  ret = decodeRecipeListReport(pszData, size);
               }
               pStep->setReturnCode(MRLRC_OK);
               pTmpStep->setReturnCode(ret);
               return -1;
            });
         pStep->setName(STEP_EQ_MASTER_RECIPE_LIST);
@@ -419,14 +420,17 @@
   {
      CEquipment::onTimer(nTimerid);
      // test
      // test
      /*
      static int i[2] = { 0, 0 };
      i[m_nIndex]++;
      if (i[m_nIndex] == 15) {
         char szBuffer[26];
         decodeJobProcessStartReport(getStep(STEP_ID_JOB_PROCESS_START_REPORT), szBuffer, 26);
      if (m_nIndex == 0 && i[m_nIndex] % 20 == 0) {
         if (m_listener.onAlarm != nullptr) {
            m_listener.onAlarm(this, 1,
               i[m_nIndex],
               getID(),
               1);
         }
      }
      */
   }
@@ -456,7 +460,7 @@
      return m_nIndex;
   }
   BOOL CBonder::hasBondClass()
   BOOL CBonder::hasBondGlass()
   {
      CGlass* pGlass = (CGlass*)m_slot[1].getContext();
      if (pGlass == nullptr) return FALSE;
@@ -464,7 +468,7 @@
      return pBuddy != nullptr;
   }
   BOOL CBonder::hasG2Class()
   BOOL CBonder::hasG2Glass()
   {
      CGlass* pGlass = (CGlass*)m_slot[0].getContext();
      return (pGlass != nullptr);