Пример #1
0
 public void SetFirmataTarget(FirmataTargetDevice target)
 {
     if (_selectedFirmataTarget != null && _selectedFirmataTarget != target)
         _selectedFirmataTarget.Enable(false);
     if (_selectedFirmataTarget != target)
     {
         _selectedFirmataTarget = target;
         if (_selectedFirmataTarget != null)
             _selectedFirmataTarget.Enable(true);
     }
 }
Пример #2
0
 public void SetFirmataTarget(FirmataTargetDevice target)
 {
     if (_selectedFirmataTarget != null && _selectedFirmataTarget != target)
     {
         _selectedFirmataTarget.Enable(false);
     }
     if (_selectedFirmataTarget != target)
     {
         _selectedFirmataTarget = target;
         if (_selectedFirmataTarget != null)
         {
             _selectedFirmataTarget.Enable(true);
         }
     }
 }