diff --git a/Software/LogicAnalyzer/I2CProtocolAnalyzer/I2CAnalyzer.cs b/Software/LogicAnalyzer/I2CProtocolAnalyzer/I2CAnalyzer.cs index 32006cd..a96a825 100644 --- a/Software/LogicAnalyzer/I2CProtocolAnalyzer/I2CAnalyzer.cs +++ b/Software/LogicAnalyzer/I2CProtocolAnalyzer/I2CAnalyzer.cs @@ -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