mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
Update S7.Net/Conversion.cs
Co-authored-by: Günther Foidl <gue@korporal.at>
This commit is contained in:
@@ -159,7 +159,7 @@ namespace S7.Net
|
||||
/// <param name="value"></param>
|
||||
public static void SetBit(this ref byte data, int bitPosition, bool value)
|
||||
{
|
||||
if (bitPosition < 0 || bitPosition > 7)
|
||||
if ((uint)bitPosition > 7)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user