| 100 | } |
| 101 | |
| 102 | int OSSerial::close_serial_port () |
| 103 | { |
| 104 | if (this->is_port_open ()) |
| 105 | { |
| 106 | CloseHandle (this->port_descriptor); |
| 107 | this->port_descriptor = NULL; |
| 108 | } |
| 109 | return SerialExitCodes::OK; |
| 110 | } |
| 111 | |
| 112 | ///////////////////////////////////////////////// |
| 113 | //////////////////// Linux ////////////////////// |
no test coverage detected