Explorar o código

Bug fix for encapsulation

Signed-off-by: Martin Melik Merkumians <melik-merkumians@acin.tuwien.ac.at>
Martin Melik Merkumians %!s(int64=5) %!d(string=hai) anos
pai
achega
f2939dd0bd
Modificáronse 2 ficheiros con 2 adicións e 8 borrados
  1. 0 8
      source/src/cip/cipcommon.h
  2. 2 0
      source/src/enet_encap/cpf.c

+ 0 - 8
source/src/cip/cipcommon.h

@@ -13,14 +13,6 @@
 #include "typedefs.h"
 #include "ciptypes.h"
 
-/** A buffer for holding the replay generated by explicit message requests
- *  or producing I/O connections. These will use this buffer in the following
- *  ways:
- *    1. Explicit messages will use this buffer to store the data generated by the request
- *    2. I/O Connections will use this buffer for the produced data
- */
-extern EipUint8 g_message_data_reply_buffer[];
-
 static const EipUint16 kCipUintZero = 0; /**< Zero value for returning the UINT standard value */
 
 /** @brief Check if requested service present in class/instance and call appropriate service.

+ 2 - 0
source/src/enet_encap/cpf.c

@@ -527,6 +527,8 @@ void EncodeMessageRouterResponseData(
 //    AddSintToMessage( (message_router_response->message.message_buffer)[i], outgoing_message);
 //  }
   memcpy(outgoing_message->current_message_position, message_router_response->message.message_buffer, message_router_response->message.used_message_length);
+
+  outgoing_message->current_message_position += message_router_response->message.used_message_length;
   outgoing_message->used_message_length += message_router_response->message.used_message_length;
 }