X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2FCECExports.h;h=fd6162ced744b2db0e47f2c4bb33f74462f5ca64;hb=ddb76c470aa282f59064c8e2ffe20a0785463167;hp=e5c52e3b6f784afa87560cfa3dda602c2d37c91a;hpb=9dee1670cb5167360026a910a33de46e811a8588;p=deb_libcec.git diff --git a/include/CECExports.h b/include/CECExports.h index e5c52e3..fd6162c 100644 --- a/include/CECExports.h +++ b/include/CECExports.h @@ -56,7 +56,7 @@ namespace CEC { #endif #define CEC_MIN_VERSION 6 #define CEC_LIB_VERSION 6 - #define CEC_SETTLE_DOWN_TIME 1000 + #define CEC_SETTLE_DOWN_TIME 1500 #define CEC_BUTTON_TIMEOUT 500 typedef enum cec_user_control_code @@ -353,16 +353,13 @@ namespace CEC { cec_datapacket parameters; bool opcode_set; - static cec_command format(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) { - cec_command command; command.clear(); command.initiator = initiator; command.destination = destination; command.opcode = opcode; command.opcode_set = true; - - return command; } void push_back(uint8_t data)