Quick fix to C example.

This commit is contained in:
Jason Watkins
2015-09-08 12:40:46 -07:00
parent b87fde51a1
commit 76b6d84a86

View File

@@ -24,7 +24,7 @@ int main()
const char* IP = "127.0.0.1"; //IP Address of computer running X-Plane const char* IP = "127.0.0.1"; //IP Address of computer running X-Plane
XPCSocket sock = openUDP(IP); XPCSocket sock = openUDP(IP);
float tVal[1]; float tVal[1];
int tSize; int tSize = 1;
if (getDREF(sock, "sim/test/test_float", tVal, &tSize) < 0) if (getDREF(sock, "sim/test/test_float", tVal, &tSize) < 0)
{ {
printf("Error establishing connecting. Unable to read data from X-Plane."); printf("Error establishing connecting. Unable to read data from X-Plane.");