diff --git a/EmoTracker/Providers/SNI/SniDevice.cs b/EmoTracker/Providers/SNI/SniDevice.cs index 3f408cf..9bc0635 100644 --- a/EmoTracker/Providers/SNI/SniDevice.cs +++ b/EmoTracker/Providers/SNI/SniDevice.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Grpc.Core; namespace EmoTracker.Providers.SNI { @@ -84,6 +85,16 @@ public override async Task ConnectAsync() mConnected = true; ConnectionStatusChanged?.Invoke(this, true); } + catch (RpcException ex) + { + //SNI Memory Mapping Detection isn't implemented for these devices, but we are connected if we're getting this response + if(ex.StatusCode == StatusCode.Unimplemented) + Log.Debug("[SNI] Device does not implement mapping_detect however we are connected as we " + + "explicitly received the Unimplemented status {DisplayName}: {Message}", + mDisplayName, ex.Message); + mConnected = true; + ConnectionStatusChanged?.Invoke(this, true); + } catch (Exception ex) { Log.Warning("[SNI] Failed to connect to {DisplayName}: {Message}", mDisplayName, ex.Message);