From 9a3031e1a879af1fec2ea7ab88f33889d1e7679a Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 26 十月 2023 17:36:02 +0800
Subject: [PATCH] fix
---
constvar/const.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/constvar/const.go b/constvar/const.go
index 6cb9a3e..8976494 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -50,7 +50,7 @@
}
func (slf *PlcMethod) Valid() bool {
- return *slf == PlcMethodModbusTCP || *slf == PlcMethodSerial
+ return *slf == PlcMethodModbusTCP || *slf == PlcMethodSerial || *slf == PlcMethodModbusRTU
}
const (
--
Gitblit v1.8.0