mrDarker
2025-04-03 39e5424c8ce474c09ef9939f28e07232dedf3113
SourceCode/Bond/Servo/CReadStep.cpp
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "CReadStep.h"
#include "Common.h"
#include "CEquipment.h"
namespace SERVO {
@@ -83,9 +84,8 @@
            nextStep();
            ASSERT(m_pCclink);
            if (0 == onReadData()) {
               if (m_listener.onEvent != nullptr) {
                  m_listener.onEvent(this, STEP_EVENT_READDATA, nullptr);
               }
               ASSERT(m_pEquipment);
               m_pEquipment->onStepEvent(this, STEP_EVENT_READDATA);
            }
            // 2.给对方写ON
@@ -112,9 +112,8 @@
            // 6.完成
            nextStep();
            if (0 == onComplete()) {
               if (m_listener.onEvent != nullptr) {
                  m_listener.onEvent(this, STEP_EVENT_COMPLETE, nullptr);
               }
               ASSERT(m_pEquipment);
               m_pEquipment->onStepEvent(this, STEP_EVENT_COMPLETE);
            }
         }
      }