mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 03:42:51 +00:00
Fix bug with writing too many bytes
This commit is contained in:
@@ -188,7 +188,7 @@ public class Sharp7Plc : IPlc
|
||||
{
|
||||
ValueConverter.WriteToBuffer(buffer, value, address);
|
||||
|
||||
await s7Connector.WriteBytes(address.Operand, address.Start, buffer, address.DbNo, token);
|
||||
await s7Connector.WriteBytes(address.Operand, address.Start, buffer, address.DbNo, address.BufferLength, token);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -295,7 +295,7 @@ public class Sharp7Plc : IPlc
|
||||
StartNotificationLoop();
|
||||
}
|
||||
|
||||
private async Task<Unit> GetAllValues(IS7Connector connector)
|
||||
private async Task<Unit> GetAllValues(Sharp7Connector connector)
|
||||
{
|
||||
if (multiVariableSubscriptions.ExistingKeys.IsEmpty())
|
||||
return Unit.Default;
|
||||
|
||||
Reference in New Issue
Block a user