aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-ctl/cec-ctl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/cec-ctl/cec-ctl.cpp')
-rw-r--r--utils/cec-ctl/cec-ctl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index d70841bd..c1375ee8 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1851,12 +1851,6 @@ int main(int argc, char **argv)
printf("\tAvailable Logical Addresses: %u\n",
caps.available_log_addrs);
- if ((node.caps & CEC_CAP_LOG_ADDRS) && options[OptClear]) {
- struct cec_log_addrs laddrs = { };
-
- doioctl(&node, CEC_ADAP_S_LOG_ADDRS, &laddrs);
- }
-
if ((node.caps & CEC_CAP_PHYS_ADDR) && options[OptPhysAddr])
doioctl(&node, CEC_ADAP_S_PHYS_ADDR, &phys_addr);
doioctl(&node, CEC_ADAP_G_PHYS_ADDR, &phys_addr);
@@ -1867,6 +1861,12 @@ int main(int argc, char **argv)
(node.caps & CEC_CAP_PHYS_ADDR))
printf("Perhaps you should use option --phys-addr?\n");
+ if ((node.caps & CEC_CAP_LOG_ADDRS) && options[OptClear]) {
+ struct cec_log_addrs laddrs = { };
+
+ doioctl(&node, CEC_ADAP_S_LOG_ADDRS, &laddrs);
+ }
+
if ((node.caps & CEC_CAP_LOG_ADDRS) && flags) {
struct cec_log_addrs laddrs = {};
__u8 all_dev_types = 0;

Privacy Policy