Skip to content

Commit e05333e

Browse files
authored
Merge pull request #40 from tektronix/ijavierTek/insert-parentheses-Send2Arb
Added parentheses to clarify arithmetic order (issue #23)
2 parents 2ad9944 + 2c1a983 commit e05333e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Signal_Sources/src/AFG3KSendWaveformExample/cs/Example5_Send2Arb.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private void button1_Click(object sender, EventArgs e)
3737
{
3838
hexStr1[i] = hexArray[i].ToString("X4");
3939
hexStr2[2 * i] = hexStr1[i].Substring(0, 2);
40-
hexStr2[2 * i + 1] = hexStr1[i].Substring(2, 2);
40+
hexStr2[(2 * i) + 1] = hexStr1[i].Substring(2, 2);
4141
}
4242
byte[] Str2Byt = hexStr2.Select(s => Convert.ToByte(s, 16)).ToArray();
4343
string EnCdStr = System.Text.Encoding.ASCII.GetString(Str2Byt);

0 commit comments

Comments
 (0)