diff --git a/csharp/Lib/Devices/AMPT/AmptDevices.cs b/csharp/Lib/Devices/AMPT/AmptDevices.cs index 7345c2c3c..04f6183f3 100644 --- a/csharp/Lib/Devices/AMPT/AmptDevices.cs +++ b/csharp/Lib/Devices/AMPT/AmptDevices.cs @@ -31,9 +31,11 @@ public class AmptDevices { return TryRead(); } - catch (Exception e) + catch ( Exception e) { - Console.WriteLine("Failed to read Ampt data \n" + e.Message); + if( e is not NullChannelException) + Console.WriteLine("Failed to read Ampt data \n" + e.Message); + return null; } }