mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 03:42:51 +00:00
Remove ReadBit
Using ReadBytes to allow for later unification of Byte conversion logic
This commit is contained in:
@@ -144,9 +144,8 @@ namespace Sharp7.Rx
|
||||
|
||||
if (typeof(TValue) == typeof(bool))
|
||||
{
|
||||
var b = await s7Connector.ReadBit(address.Operand, address.Start, address.Bit, address.DbNr, token);
|
||||
token.ThrowIfCancellationRequested();
|
||||
return (TValue)(object)b;
|
||||
var b = await s7Connector.ReadBytes(address.Operand, address.Start, address.Length, address.DbNr, token);
|
||||
return ConvertToType<TValue>(b, address);
|
||||
}
|
||||
|
||||
if (typeof(TValue) == typeof(int))
|
||||
|
||||
Reference in New Issue
Block a user