This commit is contained in:
@@ -28,7 +28,7 @@ namespace MembranePoreTester.Communication
|
||||
}
|
||||
|
||||
// 读取两个连续的保持寄存器,转换为32位浮点数(假设大端模式)
|
||||
private async Task<float> ReadFloatAsync(ushort startAddress)
|
||||
public async Task<float> ReadFloatAsync(ushort startAddress)
|
||||
{
|
||||
await EnsureConnectedAsync();
|
||||
var registers = await ReadHoldingRegistersAsync(startAddress, 2);
|
||||
|
||||
Reference in New Issue
Block a user