- packetE = [SIDhigh, SIDlow | 0x80, 0x00,0x00, # pad out EID regs
+
+ #packet = [SIDhigh, SIDlow, 0x00,0x00, # pad out EID regs
+ # 0x08, # bit 6 must be set to 0 for data frame (1 for RTR)
+ # # lower nibble is DLC
+ # 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0xFF]
+ else:
+
+ # if we do have a packet, packet is SID + padding out EID registers + DLC of 8 + packet
+ #
+ # TODO: allow for variable-length packets
+ #
+ packet = [SIDhigh, SIDlow, 0x00,0x00, # pad out EID regs