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

Method config_board

src/board_controller/neuropawn/knight_base.cpp:159–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159int 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
182int KnightBase::send_to_board (const char *msg)
183{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected