Don't set operation to read before writing segment

This commit is contained in:
Shawn Ferry 2023-10-17 01:05:14 -04:00
parent 7d05c52627
commit 30624c6143
No known key found for this signature in database

View File

@ -98,10 +98,11 @@ namespace I2CProtocolAnalyzer
{
// Reset addressByte from repeat start
addressByte = false;
op = "Read";
segment.Value += "10b Op Change";
segment.Value += $"\r\nAddress: {addr}";
segment.Value += $" Op: {op}";
// Don't change op until after adding current segment value
op = "Read";
}
// else This is a new start with a new address