From 8d5d8d8709ec2e9ae21bb14a11be2e204fc3034c Mon Sep 17 00:00:00 2001 From: Michele Cattafesta Date: Mon, 22 Dec 2014 14:42:53 +0100 Subject: [PATCH] Removed warning for exception not in use. Signed-off-by: Michele Cattafesta --- S7.Net/PLC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S7.Net/PLC.cs b/S7.Net/PLC.cs index 5686552..fde18d8 100644 --- a/S7.Net/PLC.cs +++ b/S7.Net/PLC.cs @@ -718,7 +718,7 @@ namespace S7.Net return Write(mDataType, 0, mByte, (byte)_byte); } } - catch (Exception ex) + catch { LastErrorCode = ErrorCode.WrongVarFormat; LastErrorString = "The variable'" + variable + "' could not be parsed. Please check the syntax and try again.";