Merge "Fix <UCP>[Power] toggled the power status"
am: b3eeb859f7
Change-Id: I7f56ece79f0eb10cc27d5c62d1c8300933b1c23b
This commit is contained in:
@@ -514,8 +514,7 @@ abstract class HdmiCecLocalDevice {
|
||||
static boolean isPowerOffOrToggleCommand(HdmiCecMessage message) {
|
||||
byte[] params = message.getParams();
|
||||
return message.getOpcode() == Constants.MESSAGE_USER_CONTROL_PRESSED
|
||||
&& (params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER
|
||||
|| params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_OFF_FUNCTION
|
||||
&& (params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_OFF_FUNCTION
|
||||
|| params[0] == HdmiCecKeycode.CEC_KEYCODE_POWER_TOGGLE_FUNCTION);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user