Skip to content

Commit b95dd9d

Browse files
authored
676 increase delay and connection handling for ephys link (#700)
* Switch to uncompressed build, ignoring files * Increase retry limit * Version bump
1 parent 200de21 commit b95dd9d

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,5 @@ Assets/Resources.meta
174174
Library/com.unity.addressables/AddressablesBuildTEP.json
175175
Assets/AddressableAssetsData/link.xml
176176
Assets/AddressableAssetsData/link.xml.meta
177+
178+
Assets/StreamingAssets/EphysLink-v1.3.3

Assets/Scripts/Pinpoint/UI/EphysLinkSettings/EphysLinkSettings.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ public class EphysLinkSettings : MonoBehaviour
2020
{
2121
#region Constants
2222

23-
private const string EPHYS_LINK_EXE_NAME = "EphysLink-v1.3.0.exe";
23+
private const string EPHYS_LINK_NAME = "EphysLink-v1.3.3";
2424
private static string EphysLinkExePath =>
25-
Path.Combine(Application.streamingAssetsPath, EPHYS_LINK_EXE_NAME);
25+
Path.Combine(
26+
Application.streamingAssetsPath,
27+
Path.Combine(EPHYS_LINK_NAME, $"{EPHYS_LINK_NAME}.exe")
28+
);
2629

2730
#endregion
2831

@@ -279,7 +282,7 @@ void ConnectToServer()
279282
err =>
280283
{
281284
attempts++;
282-
if (attempts > 5)
285+
if (attempts > 10)
283286
{
284287
_connectionErrorText.text = err;
285288
_connectButtonText.text = "Connect";
@@ -468,7 +471,10 @@ private void UpdateConnectionPanel()
468471
_connectButtonText.text = CommunicationManager.Instance.IsConnected
469472
? "Disconnect"
470473
: "Connect";
471-
_connectButton.SetActive(CommunicationManager.Instance.IsConnected || _manipulatorTypeDropdown.value >= _manipulatorTypeDropdown.options.Count - 2);
474+
_connectButton.SetActive(
475+
CommunicationManager.Instance.IsConnected
476+
|| _manipulatorTypeDropdown.value >= _manipulatorTypeDropdown.options.Count - 2
477+
);
472478

473479
_manipulatorTypeDropdown.interactable = !CommunicationManager.Instance.IsConnected;
474480
_launchEphysLinkButton.interactable = !CommunicationManager.Instance.IsConnected;
-31.4 MB
Binary file not shown.

Assets/StreamingAssets/EphysLink-v1.3.0.exe.meta renamed to Assets/StreamingAssets/EphysLink-v1.3.3.meta

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProjectSettings/ProjectSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ PlayerSettings:
139139
loadStoreDebugModeEnabled: 0
140140
visionOSBundleVersion: 1.0
141141
tvOSBundleVersion: 1.0
142-
bundleVersion: 1.1.7
142+
bundleVersion: 1.1.8
143143
preloadedAssets:
144144
- {fileID: 11400000, guid: 6057f25234ce83a4bbb3ae618a501907, type: 2}
145145
metroInputSource: 0

0 commit comments

Comments
 (0)