@@ -20,7 +20,7 @@ public class EphysLinkSettings : MonoBehaviour
2020 {
2121 #region Constants
2222
23- private const string EPHYS_LINK_NAME = "EphysLink-v2.0.2 " ;
23+ private const string EPHYS_LINK_NAME = "EphysLink-v2.1.0b1 " ;
2424
2525 private static string EphysLinkExePath =>
2626 Path . Combine (
@@ -109,15 +109,14 @@ private void OnDestroy()
109109
110110 public void OnTypeChanged ( int type )
111111 {
112- print ( "Type changed to " + type ) ;
113112 // Show/hide extra groups based on connection type
114113 _existingServerGroup . SetActive ( type == _manipulatorTypeDropdown . options . Count - 2 ) ;
115114 _proxyServerGroup . SetActive ( type == _manipulatorTypeDropdown . options . Count - 1 ) ;
116115 _connectButton . SetActive ( type >= _manipulatorTypeDropdown . options . Count - 2 ) ;
117116 _launchEphysLinkButton . gameObject . SetActive (
118117 type < _manipulatorTypeDropdown . options . Count - 2
119118 ) ;
120- _pathfinderPortInputField . gameObject . SetActive ( type == 2 ) ;
119+ _pathfinderPortInputField . gameObject . SetActive ( type == 1 ) ;
121120
122121 // Save settings
123122 Settings . EphysLinkManipulatorType = type ;
@@ -225,14 +224,8 @@ var manipulatorPanel in _manipulatorIdToManipulatorConnectionSettingsPanel.Value
225224 /// </summary>
226225 public void OnLaunchEphysLinkPressed ( )
227226 {
228- // Parse manipulator type string arg (invariant: custom connection should never happen).
229- var manipulatorTypeString = _manipulatorTypeDropdown . value switch
230- {
231- 1 => "ump-3" ,
232- 2 => "pathfinder-mpm" ,
233- 3 => "new-scale" ,
234- _ => "ump-4"
235- } ;
227+ // Parse manipulator type string arg.
228+ var manipulatorTypeString = _manipulatorTypeDropdown . value == 0 ? "ump" : "pathfinder-mpm" ;
236229
237230 // Make args string (ignore updates, select type).
238231 var args = $ "-i -t { manipulatorTypeString } ";
0 commit comments