diff --git a/C/src/xplaneConnect.c b/C/src/xplaneConnect.c index 9969a57..24fb56e 100755 --- a/C/src/xplaneConnect.c +++ b/C/src/xplaneConnect.c @@ -116,7 +116,7 @@ XPCSocket aopenUDP(const char *xpIP, unsigned short xpPort, unsigned short port) #else struct timeval timeout; timeout.tv_sec = 0; - timeout.tv_usec = 100000; + timeout.tv_usec = 250000; #endif if (setsockopt(sock.sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&timeout, sizeof(timeout)) < 0) { diff --git a/TestScripts/C Tests/PosiTests.h b/TestScripts/C Tests/PosiTests.h index a46ca61..104e517 100644 --- a/TestScripts/C Tests/PosiTests.h +++ b/TestScripts/C Tests/PosiTests.h @@ -146,13 +146,13 @@ int testPOSI_NonPlayer() int testGetPOSI_Player() { float POSI[7] = { 37.524F, -122.06899F, 2500, 0, 0, 0, 1 }; - doGETPTest(POSI, 0, POSI); + return doGETPTest(POSI, 0, POSI); } int testGetPOSI_NonPlayer() { float POSI[7] = { 37.624F, -122.06899F, 1500, 0, 0, 0, 1 }; - doGETPTest(POSI, 3, POSI); + return doGETPTest(POSI, 3, POSI); } #endif \ No newline at end of file diff --git a/xpcPlugin/DataManager.cpp b/xpcPlugin/DataManager.cpp index cd64337..4571006 100644 --- a/xpcPlugin/DataManager.cpp +++ b/xpcPlugin/DataManager.cpp @@ -529,7 +529,7 @@ namespace XPC } XPLMDataTypeID dataType = XPLMGetDataRefTypes(xdref); - Log::FormatLine(LOG_INFO, "DMAN", "Setting DREF %s (x:%X) Type: %i", dref, xdref, dataType); + Log::FormatLine(LOG_INFO, "DMAN", "Setting DREF %s (x:%X) Type: %i", dref.c_str(), xdref, dataType); if ((dataType & 2) == 2) // Float { XPLMSetDataf(xdref, values[0]); diff --git a/xpcPlugin/XPlaneConnect/mac.xpl b/xpcPlugin/XPlaneConnect/mac.xpl index da391d2..e2d2f6d 100755 Binary files a/xpcPlugin/XPlaneConnect/mac.xpl and b/xpcPlugin/XPlaneConnect/mac.xpl differ