MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / log_error

Method log_error

src/utils/libftdi_serial.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void 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
59int LibFTDISerial::open_serial_port ()
60{

Callers

nothing calls this directly

Calls 1

safe_loggerMethod · 0.45

Tested by

no test coverage detected