cec: moved some logic to the cec_packet struct. fix package output