| 68 | } |
| 69 | |
| 70 | int 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 | |
| 89 | int BrainBitBLED::call_open () |
| 90 | { |
nothing calls this directly
no test coverage detected