From 0e1971485665b684b77f620dcd39c1b88a0300b3 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 15 Nov 2011 00:53:40 +0100 Subject: [PATCH] cec: missed 1 TODO in LibCecSharp.cpp. copy command parameters in GetNextCommand() --- src/LibCecSharp/LibCecSharp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index ea37291..0aec2ff 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -411,8 +411,10 @@ public: cec_command command; if (m_libCec->GetNextCommand(&command)) { - // TODO parameters - return gcnew CecCommand((CecLogicalAddress)command.initiator, (CecLogicalAddress)command.destination, command.ack == 1 ? true : false, command.eom == 1 ? true : false, command.opcode, command.transmit_timeout); + CecCommand ^ retVal = gcnew CecCommand((CecLogicalAddress)command.initiator, (CecLogicalAddress)command.destination, command.ack == 1 ? true : false, command.eom == 1 ? true : false, command.opcode, command.transmit_timeout); + for (uint8_t iPtr = 0; iPtr < command.parameters.size; iPtr++) + retVal->Parameters->PushBack(command.parameters[iPtr]); + return retVal; } return gcnew CecCommand(); -- 2.34.1