| 4 | |
| 5 | |
| 6 | Serial *Serial::create (const char *port_name, Board *board) |
| 7 | { |
| 8 | #ifdef USE_LIBFTDI |
| 9 | { |
| 10 | LibFTDISerial ftdi_probe (port_name); |
| 11 | if (ftdi_probe.open_serial_port () != SerialExitCodes::PORT_NAME_ERROR) |
| 12 | { |
| 13 | return new LibFTDISerial (port_name, board); |
| 14 | } |
| 15 | } |
| 16 | #endif |
| 17 | |
| 18 | return new OSSerial (port_name); |
| 19 | } |
nothing calls this directly
no test coverage detected