Beispiel #1
0
        private void DutyOut_MatPortDisconnect(object sender, MatPortDisconnectEventArgs e)
        {
            SendCommand((int)MotorCommand.DutyOut_DL_State, (int)ModulePortState.Free);

            if (e.DisconnectTo.IsHardwarePort)
                SendCommand((int)MotorCommand.DutyOut_DL_ConnectToHardwarePort, 0);
        }
Beispiel #2
0
 protected void RaiseMatPortDisconnectEvent(MatPortDisconnectEventArgs e)
 {
     MatPortDisconnect?.Invoke(this, e);
     IsConnecting = false;
 }