cec_datapacket parameters;
int8_t opcode_set;
int32_t transmit_timeout;
+ int8_t retries;
#ifdef __cplusplus
cec_command &operator =(const struct cec_command &command)
opcode_set = command.opcode_set;
transmit_timeout = command.transmit_timeout;
parameters = command.parameters;
+ retries = command.retries;
return *this;
}
opcode_set = 0;
opcode = CEC_OPCODE_FEATURE_ABORT;
transmit_timeout = 1000;
+ retries = 4;
parameters.Clear();
};
#endif
CCECAdapterMessage::CCECAdapterMessage(const cec_command &command)
{
clear();
+ maxTries = command.retries + 1;
//set ack polarity to high when transmitting to the broadcast address
//set ack polarity low when transmitting to any other address