| 207 | } |
| 208 | |
| 209 | int LibFTDISerial::close_serial_port () |
| 210 | { |
| 211 | last_result = ftdi_usb_close (&ftdi); |
| 212 | if (last_result == 0) |
| 213 | { |
| 214 | port_open = false; |
| 215 | return (int)SerialExitCodes::OK; |
| 216 | } |
| 217 | else |
| 218 | { |
| 219 | log_error ("close_serial_port ()"); |
| 220 | return (int)SerialExitCodes::CLOSE_ERROR; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | const char *LibFTDISerial::get_port_name () |
| 225 | { |
nothing calls this directly
no outgoing calls
no test coverage detected