Tweaked param name on setDREF in C client.

This commit is contained in:
Jason Watkins
2015-04-22 16:25:19 -07:00
parent df1c5e95e4
commit 02f4c92fce
2 changed files with 4 additions and 4 deletions

View File

@@ -350,7 +350,7 @@ int readDATA(XPCSocket sock, float dataRef[][9], int rows)
/*****************************************************************************/
/**** DREF functions ****/
/*****************************************************************************/
int setDREF(XPCSocket sock, const char* dref, float values[], int size)
int setDREF(XPCSocket sock, const char* dref, float value[], int size)
{
// Setup command
// 5 byte header + max 255 char dref name + max 255 values * 4 bytes per value = 1279
@@ -374,13 +374,13 @@ int setDREF(XPCSocket sock, const char* dref, float values[], int size)
// Copy values to buffer
buffer[6 + drefLen] = (unsigned char)size;
memcpy(buffer + 7 + drefLen, values, size * sizeof(float));
memcpy(buffer + 7 + drefLen, value, size * sizeof(float));
// Send command
if (sendUDP(sock, buffer, len) < 0)
{
printError("setDREF", "Failed to send command");
return -2;
return -3;
}
return 0;
}