cec: mark device status as present when a command was received from a device
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.cpp
index 181e6fcf02a1cc8ade153ba738e72034db9f0d0a..40c0066ad3d400f0467a8ac956f32b43e5b17cc3 100644 (file)
@@ -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);