mrDarker
2025-08-01 61ac290c2897f69db9d879ea4968304ddcd23d40
SourceCode/Bond/Servo/Model.cpp
@@ -58,6 +58,12 @@
   m_configuration.setPortCassetteType(index, (int)type);
}
void CModel::setPortEnable(unsigned int index, BOOL bEnable)
{
   m_master.setPortEnable(index, bEnable);
   m_configuration.setPortEnable(index, bEnable);
}
int CModel::init()
{
   CString strIniFile;
@@ -305,9 +311,9 @@
      notifyPtrAndInt(RX_CODE_EQ_ROBOT_TASK, pTask, nullptr, code);
   };
   masterListener.onLoadPortInUse = [&] (void* pMaster, SERVO::CEquipment* pEquipment, short scanMap) {
      LOGE("<CModel>onLoadPortInUse. scanMap = %d", scanMap);
      notifyPtr(RX_CODE_LOADPORT_INUSE, pEquipment);
   masterListener.onLoadPortStatusChanged = [&] (void* pMaster, SERVO::CEquipment* pEquipment, short status, __int64 data) {
      LOGE("<CModel>onLoadPortStatusChanged. status = %d", status);
      notifyPtr(RX_CODE_LOADPORT_STATUS_CHANGED, pEquipment);
   };
   m_master.setListener(masterListener);