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

Method prepare_session

src/board_controller/neuromd/brainbit_bled.cpp:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70int BrainBitBLED::prepare_session ()
71{
72 safe_logger (spdlog::level::warn,
73 "BoardIds::BRAINBIT_BLED_BOARD uses deprecated BLED112/bglib support and will be "
74 "removed in a future release. Use BoardIds::BRAINBIT_BOARD instead.");
75
76 if (!is_valid)
77 {
78 safe_logger (spdlog::level::info, "only one BrainBitBLED per process is allowed");
79 return (int)BrainFlowExitCodes::ANOTHER_BOARD_IS_CREATED_ERROR;
80 }
81 if (params.serial_port.empty ())
82 {
83 safe_logger (spdlog::level::err, "you need to specify dongle port");
84 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
85 }
86 return DynLibBoard::prepare_session ();
87}
88
89int BrainBitBLED::call_open ()
90{

Callers

nothing calls this directly

Calls 2

prepare_sessionFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected