case CEC_OPCODE_TEXT_VIEW_ON:
HandleTextViewOn(command);
break;
+ case CEC_OPCODE_FEATURE_ABORT:
+ HandleFeatureAbort(command);
+ break;
default:
UnhandledCommand(command);
bHandled = false;
return SetVendorId(command);
}
+bool CCECCommandHandler::HandleFeatureAbort(const cec_command &command)
+{
+ if (command.parameters.size == 2)
+ {
+ m_processor->m_busDevices[command.initiator]->SetUnsupportedFeature((cec_opcode)command.parameters[0]);
+ }
+}
+
bool CCECCommandHandler::HandleGetCecVersion(const cec_command &command)
{
if (m_processor->IsStarted() && m_busDevice->MyLogicalAddressContains(command.destination))
{
if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
{
- CCECBusDevice *primary = m_processor->m_busDevices[m_processor->GetLogicalAddresses().primary];
+ CCECBusDevice *primary = m_processor->GetPrimaryDevice();
primary->SetPowerStatus(CEC_POWER_STATUS_ON);
primary->SetMenuState(CEC_MENU_STATE_ACTIVATED);
m_processor->SetActiveSource();
primary->TransmitMenuState(m_busDevice->GetLogicalAddress());
}
+ return true;
}