| 9 | #ifdef _WIN32 |
| 10 | |
| 11 | OSSerial::OSSerial (const char *port_name) |
| 12 | { |
| 13 | std::string port_name_string (port_name); |
| 14 | // add winapi specific prefix for port name if not provided |
| 15 | if (port_name_string.find (std::string ("COM")) == 0) |
| 16 | { |
| 17 | port_name_string = std::string ("\\\\.\\") + port_name_string; |
| 18 | } |
| 19 | strcpy (this->port_name, port_name_string.c_str ()); |
| 20 | port_descriptor = NULL; |
| 21 | } |
| 22 | |
| 23 | bool OSSerial::is_port_open () |
| 24 | { |
nothing calls this directly
no outgoing calls
no test coverage detected