Automatic Whitespace Changes

This commit is contained in:
Shawn Ferry 2023-10-11 22:36:50 -04:00
parent 5f95102d50
commit ac61159575
No known key found for this signature in database

View File

@ -79,7 +79,7 @@ namespace I2CProtocolAnalyzer
{ {
addressByte = false; addressByte = false;
segment.Value += $"\r\nOp: {((value & 1) == 1 ? "Read" : "Write") }"; segment.Value += $"\r\nOp: {((value & 1) == 1 ? "Read" : "Write")}";
if ((value & 0xf8) == 0xf7) if ((value & 0xf8) == 0xf7)
{ {
@ -105,7 +105,7 @@ namespace I2CProtocolAnalyzer
if (pos == -1) if (pos == -1)
break; break;
if(foundStartStop) if (foundStartStop)
segments.Add(new ProtocolAnalyzerDataSegment { FirstSample = startPosition, LastSample = endPosition, Value = isStart ? "START" : "STOP" }); segments.Add(new ProtocolAnalyzerDataSegment { FirstSample = startPosition, LastSample = endPosition, Value = isStart ? "START" : "STOP" });
if (foundStartStop && !isStart) if (foundStartStop && !isStart)
@ -216,7 +216,7 @@ namespace I2CProtocolAnalyzer
private int ReadByte(int pos, ProtocolAnalyzerSelectedChannel scl, ProtocolAnalyzerSelectedChannel sda, out int byteStart, out int byteEnd, out byte value, out bool ack, out bool frameError) private int ReadByte(int pos, ProtocolAnalyzerSelectedChannel scl, ProtocolAnalyzerSelectedChannel sda, out int byteStart, out int byteEnd, out byte value, out bool ack, out bool frameError)
{ {
byteStart = 0; byteEnd = 0; value = 0; ack = false; frameError= false; byteStart = 0; byteEnd = 0; value = 0; ack = false; frameError = false;
while (pos < scl.Samples.Length && scl.Samples[pos] == 1) //Find next low clock while (pos < scl.Samples.Length && scl.Samples[pos] == 1) //Find next low clock
pos++; pos++;