aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-07-22 10:44:35 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-07-22 10:44:35 +0200
commit2fedf5e04804742bbd62d480c8848e3e6db59130 (patch)
tree1740e76e341b98a7b452fad15dc5765e26fb0c55
parent8f6e3ca355f6329115cc0c959ab703d0961d9301 (diff)
cec-follower/cec-compliance: fix feat2s mask
The feature byte was ANDed with 0x3e instead of 0x7e. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-compliance/cec-compliance.cpp2
-rw-r--r--utils/cec-follower/cec-follower.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index cc2893ba..c0cf1541 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -382,7 +382,7 @@ std::string dev_feat2s(unsigned feat)
{
std::string s;
- feat &= 0x3e;
+ feat &= 0x7e;
if (feat == 0)
return "\t\tNone\n";
if (feat & CEC_OP_FEAT_DEV_HAS_RECORD_TV_SCREEN)
diff --git a/utils/cec-follower/cec-follower.cpp b/utils/cec-follower/cec-follower.cpp
index fc9e89ed..a07675da 100644
--- a/utils/cec-follower/cec-follower.cpp
+++ b/utils/cec-follower/cec-follower.cpp
@@ -327,7 +327,7 @@ std::string dev_feat2s(unsigned feat)
{
std::string s;
- feat &= 0x3e;
+ feat &= 0x7e;
if (feat == 0)
return "\t\tNone\n";
if (feat & CEC_OP_FEAT_DEV_HAS_RECORD_TV_SCREEN)

Privacy Policy