Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Croes <[email protected]>
  • Loading branch information
Himmelt and mycroes authored Aug 18, 2023
1 parent fadd7d0 commit f79286b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S7.Net/Conversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ public static bool SelectBit(this byte data, int index)
/// Helper to set a bit value to the given byte at the bit index.
/// Example: byte data = (byte)0x00; data.SetBit(4, true);// data -> 0x10
/// </summary>
/// <param name="data">byte data to be modified</param>
/// <param name="index">bit index</param>
/// <param name="value">bool value to set</param>
/// <param name="data">The data to be modified.</param>
/// <param name="index">The zero-based index of the bit to set.</param>
/// <param name="value">The Boolean value to assign to the bit.</param>
public static void SetBit(this ref byte data, int index, bool value)
{
if ((uint)index > 7)
Expand Down

0 comments on commit f79286b

Please sign in to comment.