- self.put(self.net_beg, self.net_end, self.out_ann, [0, ['ROM: 0x%016x' % self.net_rom]])
- self.put(self.net_beg, self.net_end, self.out_proto, ['ROM', self.net_rom])
- self.state = "TRANSPORT"
- elif (self.state == "TRANSPORT"):
- # The transport layer is handled in byte sized units
- if (self.onewire_collect(8, val, ss, es)):
- self.put(self.net_beg, self.net_end, self.out_ann, [0, ['DATA: 0x%02x' % self.data]])
- self.put(self.net_beg, self.net_end, self.out_proto, ['DATA', self.data])
- elif (self.state == "COMMAND ERROR"):
- # Since the command is not recognized, print raw data
- if (self.onewire_collect(8, val, ss, es)):
- self.put(self.net_beg, self.net_end, self.out_ann, [0, ['ROM ERROR DATA: 0x%02x' % self.data]])
+ self.putx([0, ['ROM: 0x%016x' % self.net_rom]])
+ self.puty(['ROM', self.net_rom])
+ self.state = 'TRANSPORT'
+ elif self.state == 'TRANSPORT':
+ # The transport layer is handled in byte sized units.
+ if self.onewire_collect(8, val, ss, es):
+ self.putx([0, ['DATA: 0x%02x' % self.data]])
+ self.puty(['DATA', self.data])
+ elif self.state == 'COMMAND ERROR':
+ # Since the command is not recognized, print raw data.
+ if self.onewire_collect(8, val, ss, es):
+ self.putx([0, ['ROM ERROR DATA: 0x%02x' % self.data]])