Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
         }
     }
 }