From f8c1b83656eb2f6a7b40f9745459feaefe4e44f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=9C=A3?= Date: Tue, 30 Aug 2016 17:40:12 +0800 Subject: [PATCH] Fix --- Modbus.Net/Modbus.Net/ValueHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modbus.Net/Modbus.Net/ValueHelper.cs b/Modbus.Net/Modbus.Net/ValueHelper.cs index b1e55db..6c45751 100644 --- a/Modbus.Net/Modbus.Net/ValueHelper.cs +++ b/Modbus.Net/Modbus.Net/ValueHelper.cs @@ -424,7 +424,7 @@ namespace Modbus.Net i--; } subPos += 1; - if (subPos < 0) + if (subPos > 7) { pos++; subPos = 0;