| 157 | } |
| 158 | |
| 159 | int KnightBase::config_board (std::string config, std::string &response) |
| 160 | { |
| 161 | if (!initialized) |
| 162 | { |
| 163 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 164 | } |
| 165 | int res = (int)BrainFlowExitCodes::STATUS_OK; |
| 166 | if (is_streaming) |
| 167 | { |
| 168 | safe_logger (spdlog::level::warn, |
| 169 | "You are changing board params during streaming, it may lead to sync mismatch between " |
| 170 | "data acquisition thread and device"); |
| 171 | res = send_to_board (config.c_str ()); |
| 172 | } |
| 173 | else |
| 174 | { |
| 175 | // read response if streaming is not running |
| 176 | res = send_to_board (config.c_str (), response); |
| 177 | } |
| 178 | |
| 179 | return res; |
| 180 | } |
| 181 | |
| 182 | int KnightBase::send_to_board (const char *msg) |
| 183 | { |
nothing calls this directly
no outgoing calls
no test coverage detected