| 560 | } |
| 561 | |
| 562 | int CCECCommandHandler::HandleRoutingChange(const cec_command &command) |
| 563 | { |
| 564 | if (command.parameters.size == 4) |
| 565 | { |
| 566 | CCECBusDevice *device = GetDevice(command.initiator); |
| 567 | if (device) |
| 568 | { |
| 569 | uint16_t iNewAddress = ((uint16_t)command.parameters[2] << 8) | ((uint16_t)command.parameters[3]); |
| 570 | /** only powered on device send routing changes */ |
| 571 | device->SetPowerStatus(CEC_POWER_STATUS_ON); |
| 572 | device->SetActiveRoute(iNewAddress); |
| 573 | return COMMAND_HANDLED; |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 578 | } |
| 579 | |
| 580 | int CCECCommandHandler::HandleRoutingInformation(const cec_command &command) |
| 581 | { |
nothing calls this directly
no test coverage detected