mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 19:52:53 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -222,7 +222,8 @@ namespace Sharp7.Rx
|
|||||||
if (result != 0)
|
if (result != 0)
|
||||||
{
|
{
|
||||||
await EvaluateErrorCode(result);
|
await EvaluateErrorCode(result);
|
||||||
throw new InvalidOperationException($"Error reading {operand}{dBNr}:{startByteAddress}->{bytesToRead}");
|
var errorText = this.sharp7.ErrorText(result);
|
||||||
|
throw new InvalidOperationException($"Error reading {operand}{dBNr}:{startByteAddress}->{bytesToRead} ({errorText})");
|
||||||
}
|
}
|
||||||
|
|
||||||
var retBuffer = new byte[bytesToRead];
|
var retBuffer = new byte[bytesToRead];
|
||||||
|
|||||||
Reference in New Issue
Block a user