SNICInterface for development

Fork of SNICInterface by muRata

Revision:
36:f33fcf5975ab
Parent:
32:ae95309643aa
Child:
38:f13e4e563d65
--- a/Socket/TCPSocketServer.cpp	Tue Jun 10 10:19:48 2014 +0000
+++ b/Socket/TCPSocketServer.cpp	Thu Jun 19 10:15:47 2014 +0000
@@ -61,7 +61,7 @@
     req.seq          = mUartRequestSeq++;
     req.interface    = 0;
     
-    unsigned char command_array[UART_REQUEST_PAYLOAD_MAX];
+    unsigned char *command_array = snic_core_p->getCommandBuf();
     unsigned int  command_len;
     // Preparation of command
     command_len = snic_core_p->preparationSendCommand( UART_CMD_ID_SNIC, req.cmd_sid, (unsigned char *)&req
@@ -124,7 +124,7 @@
     req.recv_bufsize[1] = (SNIC_UART_RECVBUF_SIZE & 0xFF);
     req.max_client      = max;
     
-    unsigned char command_array[UART_REQUEST_PAYLOAD_MAX];
+    unsigned char *command_array = snic_core_p->getCommandBuf();
     unsigned int  command_len;
     // Preparation of command
     command_len = snic_core_p->preparationSendCommand( UART_CMD_ID_SNIC, req.cmd_sid, (unsigned char *)&req