If the oldsym is not set to 'J' before entering IDLE state, the SOP
detection will never trigger
elif sym == 'LS_J':
self.signalling = 'low-speed'
self.update_bitrate()
+ self.oldsym = 'J'
self.state = 'IDLE'
def decode(self, ss, es, data):
self.get_bit(sym)
elif self.state == 'GET EOP':
self.get_eop(sym)
+ self.oldpins = pins
elif self.state == 'WAIT IDLE':
- if self.oldpins == pins:
+ if tuple(pins) == (0, 0):
continue
if self.samplenum - self.samplenum_lastedge > 1:
sym = symbols[self.options['signalling']][tuple(pins)]