From 6cd4e9d1e680e9d9aed83ee2c1bacdf8ac4a69b8 Mon Sep 17 00:00:00 2001 From: luosheng Date: Wed, 28 Jun 2023 10:35:38 +0800 Subject: [PATCH] Fix --- Modbus.Net/Modbus.Net/Linker/ProtocolLinker.cs | 2 +- Modbus.Net/Modbus.Net/Machine/BaseMachine.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modbus.Net/Modbus.Net/Linker/ProtocolLinker.cs b/Modbus.Net/Modbus.Net/Linker/ProtocolLinker.cs index 4ef3901..244bef0 100644 --- a/Modbus.Net/Modbus.Net/Linker/ProtocolLinker.cs +++ b/Modbus.Net/Modbus.Net/Linker/ProtocolLinker.cs @@ -7,7 +7,7 @@ namespace Modbus.Net /// /// 基本的协议连接器 /// - public abstract class ProtocolLinker : ProtocolLinker, IProtocolLinkerBytesExtend + public abstract class ProtocolLinker : ProtocolLinker { /// /// 发送并接收数据 diff --git a/Modbus.Net/Modbus.Net/Machine/BaseMachine.cs b/Modbus.Net/Modbus.Net/Machine/BaseMachine.cs index c296c7e..8ac615e 100644 --- a/Modbus.Net/Modbus.Net/Machine/BaseMachine.cs +++ b/Modbus.Net/Modbus.Net/Machine/BaseMachine.cs @@ -12,7 +12,7 @@ namespace Modbus.Net /// /// 设备的Id类型 /// 设备中使用的AddressUnit的Id类型 - public abstract class BaseMachine : BaseMachine, IMachine + public abstract class BaseMachine : BaseMachine where TKey : IEquatable where TUnitKey : IEquatable {