<PropertyGroup Label="UserMacros" />\r
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
<LinkIncremental>true</LinkIncremental>\r
+ <TargetName>$(ProjectName)d</TargetName>\r
</PropertyGroup>\r
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
<LinkIncremental>false</LinkIncremental>\r
\r
#include <iostream>\r
using namespace std;\r
-
-#ifdef WIN32
-#include <windows.h>
-#endif
+\r
+#ifdef WIN32\r
+#include <windows.h>\r
+#endif\r
\r
SerialWindows::SerialWindows(const char *portName, int baudrate)\r
:Serial(portName)\r
}\r
else\r
{\r
- /*
- COMMTIMEOUTS commTimeouts;
- commTimeouts.ReadIntervalTimeout = 1;
- commTimeouts.ReadTotalTimeoutMultiplier = 10;
- commTimeouts.ReadTotalTimeoutConstant = 100;
- commTimeouts.WriteTotalTimeoutMultiplier = 10;
- commTimeouts.WriteTotalTimeoutConstant = 100;
- if (SetCommTimeouts(_comport, &commTimeouts) == 0)
- throw "Cannot set COM port timeouts";*/
+ /* \r
+ COMMTIMEOUTS commTimeouts;\r
+ commTimeouts.ReadIntervalTimeout = 1;\r
+ commTimeouts.ReadTotalTimeoutMultiplier = 10;\r
+ commTimeouts.ReadTotalTimeoutConstant = 100;\r
+ commTimeouts.WriteTotalTimeoutMultiplier = 10;\r
+ commTimeouts.WriteTotalTimeoutConstant = 100;\r
+ if (SetCommTimeouts(_comport, &commTimeouts) == 0)\r
+ throw "Cannot set COM port timeouts";*/\r
\r
\r
//If connected we try to set the comm parameters\r
//ClearCommError(_hSerial, &_errors, &_status);\r
/* if(!FlushFileBuffers(_hSerial))\r
cout << "ERROR while flushing" << endl;*/\r
-/* stringstream s;
- s << bytesSend << " SENT" << endl;
- OutputDebugString(s.str().c_str());*/
+/* stringstream s;\r
+ s << bytesSend << " SENT" << endl;\r
+ OutputDebugString(s.str().c_str());*/\r
return true;\r
}\r
}\r