am 3f6755f5: CEC: Check command type for power status monitor action
* commit '3f6755f58722bbae532171c384a294e530864ae1': CEC: Check command type for power status monitor action
This commit is contained in:
@@ -64,10 +64,11 @@ public class PowerStatusMonitorAction extends HdmiCecFeatureAction {
|
||||
|
||||
@Override
|
||||
boolean processCommand(HdmiCecMessage cmd) {
|
||||
if (mState != STATE_WAIT_FOR_REPORT_POWER_STATUS) {
|
||||
return false;
|
||||
if (mState == STATE_WAIT_FOR_REPORT_POWER_STATUS
|
||||
&& cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) {
|
||||
return handleReportPowerStatus(cmd);
|
||||
}
|
||||
return handleReportPowerStatus(cmd);
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean handleReportPowerStatus(HdmiCecMessage cmd) {
|
||||
|
||||
Reference in New Issue
Block a user