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

Method config_board

src/board_controller/openbci/cyton_daisy.cpp:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14int CytonDaisy::config_board (std::string conf, std::string &response)
15{
16 if (gain_tracker.apply_config (conf) == (int)OpenBCICommandTypes::INVALID_COMMAND)
17 {
18 safe_logger (spdlog::level::warn, "invalid command: {}", conf.c_str ());
19 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
20 }
21 int res = OpenBCISerialBoard::config_board (conf, response);
22 if (res != (int)BrainFlowExitCodes::STATUS_OK)
23 {
24 gain_tracker.revert_config ();
25 }
26 return res;
27}
28
29void CytonDaisy::read_thread ()
30{

Callers

nothing calls this directly

Calls 3

revert_configMethod · 0.80
config_boardFunction · 0.50
apply_configMethod · 0.45

Tested by

no test coverage detected