aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-test-power.cpp2
-rw-r--r--utils/cec-compliance/cec-test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp
index 26b0c65c..e82e419a 100644
--- a/utils/cec-compliance/cec-test-power.cpp
+++ b/utils/cec-compliance/cec-test-power.cpp
@@ -428,7 +428,7 @@ static int wakeup_rc(struct node *node, unsigned me, unsigned la)
/* Todo: A release should be sent after this */
cec_msg_init(&msg, me, la);
- rc_press.ui_cmd = 0x6D; /* Power On Function */
+ rc_press.ui_cmd = CEC_OP_UI_CMD_POWER_ON_FUNCTION;
cec_msg_user_control_pressed(&msg, &rc_press);
fail_on_test(!transmit_timeout(node, &msg));
fail_on_test(cec_msg_status_is_abort(&msg));
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index aece546c..017d1ef8 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -537,7 +537,7 @@ static int rc_passthrough_user_ctrl_pressed(struct node *node, unsigned me, unsi
struct cec_op_ui_command rc_press;
cec_msg_init(&msg, me, la);
- rc_press.ui_cmd = 0x41; // Volume up key (the key is not crucial here)
+ rc_press.ui_cmd = CEC_OP_UI_CMD_VOLUME_UP; // Volume up key (the key is not crucial here)
cec_msg_user_control_pressed(&msg, &rc_press);
fail_on_test(!transmit_timeout(node, &msg));
/* Mandatory for all except devices which have taken logical address 15 */

Privacy Policy