class SubSubEvent(object):
- # The SubSubEvent header consists of a single words
+ # The SubSubEvent header consists of a single word
HEADERSIZE = WORDSIZE * 1
HEADER_FMT = '>HH'
fmt = " |-> size: 0x{:04x} address: 0x{:04x}\n"
out = fmt.format(self.size, self.address)
out += "\n"
- out += str_32bit_chunks(self.payload_bytes)
+ if len(self.payload_bytes):
+ out += " "
+ out += str_32bit_chunks(self.payload_bytes).replace('\n','\n ')
+ out += "\n\n"
return out
#### ------ Generator Functions to read the HLD into the (sub)event classes ------ ####