From 1c4426810c71eead57084be8a18ade8d314dd8c4 Mon Sep 17 00:00:00 2001 From: patrick <patrick.xu@broconcentric.com> Date: 星期二, 10 十二月 2019 14:24:31 +0800 Subject: [PATCH] 1. 重构项目 --- src/Bro.Device.OmronFins/FinsFrame.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bro.Device.OmronFins/FinsFrame.cs b/src/Bro.Device.OmronFins/FinsFrame.cs index dabb024..4189eba 100644 --- a/src/Bro.Device.OmronFins/FinsFrame.cs +++ b/src/Bro.Device.OmronFins/FinsFrame.cs @@ -292,7 +292,7 @@ List<byte> errorCode = bytes.Skip(4 + 4 + 4).Take(4).ToList(); if (errorCode.Any(u => u != 0x00)) { - throw new ProcessException($"杩斿洖寮傚父锛岄敊璇爜{string.Join("", errorCode)}", null); + throw new ProcessException($"杩斿洖寮傚父锛岄敊璇爜{string.Join("", errorCode)}"); } bytes = bytes.Skip(4 + 4 + 4 + 4).ToArray(); @@ -323,7 +323,7 @@ if (beginIndex == -1) { - throw new ProcessException("娆у榫橮LC閫氳甯ч敊璇�", null); + throw new ProcessException("娆у榫橮LC閫氳甯ч敊璇�"); } List<byte> singleBytes = bytes.Skip(beginIndex).ToList(); @@ -411,7 +411,7 @@ if (wordAddress == 0 && byteAddress == 0) { - throw new ProcessException("娆у榫橮LC鐩戝惉鍦板潃璁剧疆閿欒", null); + throw new ProcessException("娆у榫橮LC鐩戝惉鍦板潃璁剧疆閿欒"); } //瀛楀湴鍧� -- Gitblit v1.8.0