X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcectypes.h;h=e6cd0b4e942967783474a23cb2fcec4ffd62f399;hb=2c56dd5189b47478350c84917c420670598ca06b;hp=c13f3491367dfa223b0dc7ea34c681ed5986b0f2;hpb=8d915412796290269f7efd48dc5e6802d82f5f15;p=deb_libcec.git diff --git a/include/cectypes.h b/include/cectypes.h index c13f349..e6cd0b4 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -713,11 +713,12 @@ typedef struct cec_command return *this; } - static void Format(cec_command &command, cec_logical_address initiator, cec_logical_address destination, cec_opcode opcode) + static void Format(cec_command &command, cec_logical_address initiator, cec_logical_address destination, cec_opcode opcode, int32_t timeout = 1000) { command.Clear(); - command.initiator = initiator; - command.destination = destination; + command.initiator = initiator; + command.destination = destination; + command.transmit_timeout = timeout; if (opcode != CEC_OPCODE_NONE) { command.opcode = opcode; @@ -749,7 +750,7 @@ typedef struct cec_command eom = 0; opcode_set = 0; opcode = CEC_OPCODE_FEATURE_ABORT; - transmit_timeout = 1000; + transmit_timeout = 0; retries = 4; parameters.Clear(); };