X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=40c0066ad3d400f0467a8ac956f32b43e5b17cc3;hb=a24c27d3704d6934f4ea68d093453e68246a9de0;hp=181e6fcf02a1cc8ade153ba738e72034db9f0d0a;hpb=e54fd7d2a2bdb442b5913de9de213518198f92b6;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 181e6fc..40c0066 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -44,11 +44,11 @@ CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) : bool CSLCommandHandler::HandleVendorCommand(const cec_command &command) { if (command.parameters.size == 1 && - command.parameters[0] == 0xA0) + command.parameters[0] == 0x01) { /* enable SL */ cec_command response; - cec_command::Format(response, m_busDevice->GetLogicalAddress(), command.initiator, CEC_OPCODE_VENDOR_COMMAND); + cec_command::Format(response, command.destination, command.initiator, CEC_OPCODE_VENDOR_COMMAND); response.PushBack(0x02); response.PushBack(0x05);