From 273975ec45d548e3879a7ed2638ae85311b453ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20L=C3=B3pez=20Carral?= <hectorcarral@icloud.com> Date: Thu, 4 May 2017 12:21:04 +0200 Subject: [PATCH] Update Resolver.cs Resolver can now add streams with same name but different type. Some applications, such as NIC for EEG, use several streams with the same name but different types: http://wiki.neuroelectrics.com/index.php/Interacting_with_NIC#Receiving_and_sending_data_streams_using_LSL Before this change, Resolver only added one of these streams (e.g. 'name: NIC, type EEG' OR 'name: NIC, type Accelerometer'). Now, it adds all of them (e.g. 'name: NIC, type EEG' AND 'name: NIC, type Accelerometer'). --- Scripts/Resolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Resolver.cs b/Scripts/Resolver.cs index e24bc9c..03524d6 100644 --- a/Scripts/Resolver.cs +++ b/Scripts/Resolver.cs @@ -79,7 +79,7 @@ namespace Assets.LSL4Unity.Scripts // add new found streams to the cache foreach (var item in results) { - if (!knownStreams.Any(s => s.Name == item.name())) + if (!knownStreams.Any(s => s.Name == item.name() && s.Type == item.type())) { Debug.Log(string.Format("Found new Stream {0}", item.name())); -- GitLab