Hannes Kamecke
7439db1228
Fix windows com port prefix ( #179 )
...
The check in `_prefix_port_if_needed` does not work, as it's currently comparing the whole input string to the prefix. As a consequence, port strings will be prefixed, even if they're already prefixed. This commit changes the call to `wstring::compare` to use an overload that compares a substring of the input string only.
2021-06-10 14:57:28 -07:00
Ben Moyer
235a5f716d
print GetLastError() result instead of errno ( #154 )
2018-01-13 12:16:50 -08:00
Ben Moyer
534141aa8f
implement flushInput and flushOutput for windows ( #153 )
2018-01-13 12:15:36 -08:00
José Manuel Díez
ce085ce88c
Problem: hardware flow control uses RTS_CONTROL_TOGGLE ( #132 )
...
RTS_CONTROL_HANDSHAKE raises RTS when there is space in the input
buffer; RTS_CONTROL_TOGGLE only raises RTS when bytes are available for
transmission.
Also replace numeric constants with symbolic constants.
2018-01-13 12:10:11 -08:00
dontsovcmc
c16faab6ea
resource leak if exception in SerialImpl constructor ( #146 )
2016-11-21 14:48:07 -08:00
Vladimir Gamalian
402657574c
Comment unreferenced formal parameter
...
Fix warning from static analysis tools.
2015-09-27 19:41:56 +07:00
William Woodall
b8320d31a7
fix warning on Windows
2015-04-27 14:44:16 -07:00
William Woodall
985c3a5172
fix handling of COM ports over 10 on Windows, fixes #84
2015-04-21 20:43:54 -07:00
achronop
b376f85fb0
Add MARK/SPACE parity bit option
2014-12-07 21:33:53 +02:00
Konstantina Kastanara
7bce3e0fdc
CloseHanle fd_ if SetCommState fails in function Serial::SerialImpl::reconfigurePort ().
2014-08-19 18:24:48 +03:00
Linquize
54d7a9474a
Fix warning in Win64
2014-07-26 21:59:53 +08:00
William Woodall
051824894b
style fixup
2014-07-02 15:01:53 -07:00
Konstantina Kastanara
04d4763926
Added return value control in Serial::SerialImpl::close () in unix.cc and win.cc
2014-05-07 18:49:37 +03:00
Mike Purvis
5ec56d8294
Stubs for waitReadable and waitByteTimes on Windows.
2014-02-17 22:50:16 -05:00
William Woodall
092836d78f
[style] whitespace changes only
2013-10-30 11:42:35 -07:00
Christopher Baker
9d04c09f10
Code guards for platform-specific implementations.
...
(when not using cmake / catkin)
2013-10-27 18:49:07 -05:00
daniser
079615f11f
Update win.cc
2013-08-06 02:08:22 +03:00
daniser
125c105e3f
Implemented Serial::available() for Windows
2013-08-06 01:28:46 +03:00
William Woodall
e11abb04f2
Fix compiler warnings on Windows
2013-08-02 21:20:25 -07:00
William Woodall
e1138fda9e
Merge pull request #32 from wjwwood/fix_timeout_windows
...
Setting timeout throws an exception on Windows
2013-07-30 16:17:00 -07:00
William Woodall
2143e8d475
Apply the timeout settings with reconfigurePort
2013-07-30 14:08:06 -07:00
William Woodall
a0a586cf5b
[style] always use curly braces with if statements
2013-07-30 14:04:30 -07:00
William Woodall
9d20d1a07f
convert wstring into string when printing
2013-07-30 11:06:47 -07:00
William Woodall
82884ca519
Pass LPCWSTR to CreateFile in Windows impl
...
This should fix #29
2013-07-30 10:31:15 -07:00
William Woodall
ffc3028289
Use wstring for port_ type in Windows impl
2013-07-30 10:30:46 -07:00
William Woodall
2b4bafbfd2
fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
...
For SerialException's:
- The name was misspelled…
- Use std::string's for error messages to prevent corruption of messages on some platforms
2013-05-08 13:52:28 -07:00
William Woodall
2ae490b3ac
Fixes to flowcontrol that solve a wierd bug on Linux and fix an oversight on Windows.
2012-06-12 16:55:11 -05:00
William Woodall
e9999c9c7c
Changes after testing on Windows. Everything seems to work, but it could use some more vetting.
2012-06-07 19:26:55 -05:00
William Woodall
6fac95d633
Adding initial windows support.
2012-06-06 18:56:44 -05:00