From 16ed4a8483ad19a27153596b16744c4244fbe1e4 Mon Sep 17 00:00:00 2001 From: Ruben Henares Date: Thu, 10 Sep 2020 17:07:07 -0700 Subject: [PATCH] Catching incorrect message type exception --- .../MaxMix/Services/Communication/CommunicationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Desktop/Application/MaxMix/Services/Communication/CommunicationService.cs b/Desktop/Application/MaxMix/Services/Communication/CommunicationService.cs index 8ba0728e..d2d795a5 100644 --- a/Desktop/Application/MaxMix/Services/Communication/CommunicationService.cs +++ b/Desktop/Application/MaxMix/Services/Communication/CommunicationService.cs @@ -240,7 +240,7 @@ private void OnDataReceived(object sender, SerialDataReceivedEventArgs args) RaiseMessageReceived(message); } } - catch (ArgumentException e) + catch (Exception e) { RaiseError("Deserialization error: " + e.Message); }