Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NySNICInterface by
Diff: Socket/TCPSocketServer.cpp
- 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
