mrDarker
2025-10-22 e8a27bb203fe2aff70390a5eca002d7438da9b0f
SourceCode/Bond/Servo/CPagePortProperty.cpp
@@ -196,8 +196,12 @@
   CMsgDlg msgDlg("请等待", "正在操作,请等待...");
   msgDlg.SetData((DWORD_PTR)this);
   // 修改为只保存在本地配置
   ASSERT(m_pPort != nullptr);
   int index = ((CComboBox*)GetDlgItem(IDC_COMBO_PORT_TYPE))->GetCurSel();
   theApp.m_model.setPortType(m_pPort->getIndex(), SERVO::PortType(index + 1));
   /*
   m_pPort->setPortType(SERVO::PortType(index + 1), [&](int code) -> int {
      Sleep(100);
      CString strMsg;
@@ -234,6 +238,7 @@
   msgDlg.DoModal();
   g_nMsgDlgShow = 1;
   */
}
void CPagePortProperty::OnCbnSelchangeComboPortMode()