Minor fixes and Mac Binary

- Added Mac Binary
- Fixed missing returns in PosiTests.h
- Fixed bug in DataManager where FormatLine was being sent a string
instead of a c string
- Increased mac timeout
This commit is contained in:
Chris Teubert
2015-08-20 09:16:33 -07:00
parent 73bafd2a7e
commit 7c58c627ff
4 changed files with 4 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ XPCSocket aopenUDP(const char *xpIP, unsigned short xpPort, unsigned short port)
#else #else
struct timeval timeout; struct timeval timeout;
timeout.tv_sec = 0; timeout.tv_sec = 0;
timeout.tv_usec = 100000; timeout.tv_usec = 250000;
#endif #endif
if (setsockopt(sock.sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&timeout, sizeof(timeout)) < 0) if (setsockopt(sock.sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&timeout, sizeof(timeout)) < 0)
{ {

View File

@@ -146,13 +146,13 @@ int testPOSI_NonPlayer()
int testGetPOSI_Player() int testGetPOSI_Player()
{ {
float POSI[7] = { 37.524F, -122.06899F, 2500, 0, 0, 0, 1 }; float POSI[7] = { 37.524F, -122.06899F, 2500, 0, 0, 0, 1 };
doGETPTest(POSI, 0, POSI); return doGETPTest(POSI, 0, POSI);
} }
int testGetPOSI_NonPlayer() int testGetPOSI_NonPlayer()
{ {
float POSI[7] = { 37.624F, -122.06899F, 1500, 0, 0, 0, 1 }; float POSI[7] = { 37.624F, -122.06899F, 1500, 0, 0, 0, 1 };
doGETPTest(POSI, 3, POSI); return doGETPTest(POSI, 3, POSI);
} }
#endif #endif

View File

@@ -529,7 +529,7 @@ namespace XPC
} }
XPLMDataTypeID dataType = XPLMGetDataRefTypes(xdref); 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 if ((dataType & 2) == 2) // Float
{ {
XPLMSetDataf(xdref, values[0]); XPLMSetDataf(xdref, values[0]);

Binary file not shown.