| 44 | } |
| 45 | |
| 46 | void LibFTDISerial::log_error (const char *action, const char *message) |
| 47 | { |
| 48 | if (board != nullptr) |
| 49 | { |
| 50 | if (message == nullptr) |
| 51 | { |
| 52 | message = ftdi_get_error_string (&ftdi); |
| 53 | } |
| 54 | board->safe_logger ( |
| 55 | spdlog::level::err, "libftdi {}: {} -> {}", description, action, message); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | int LibFTDISerial::open_serial_port () |
| 60 | { |
nothing calls this directly
no test coverage detected