MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / HandleDeviceCecVersion

Method HandleDeviceCecVersion

src/libcec/implementations/CECCommandHandler.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command)
242{
243 if (command.parameters.size == 1)
244 {
245 CCECBusDevice *device = GetDevice(command.initiator);
246 if (device)
247 device->SetCecVersion((cec_version) command.parameters[0]);
248
249 return COMMAND_HANDLED;
250 }
251
252 return CEC_ABORT_REASON_INVALID_OPERAND;
253}
254
255int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command& command)
256{

Callers

nothing calls this directly

Calls 1

SetCecVersionMethod · 0.80

Tested by

no test coverage detected