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

Method config_board

src/board_controller/openbci/cyton_wifi.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int CytonWifi::config_board (std::string conf, std::string &response)
30{
31 if (gain_tracker.apply_config (conf) == (int)OpenBCICommandTypes::INVALID_COMMAND)
32 {
33 safe_logger (spdlog::level::warn, "invalid command: {}", conf.c_str ());
34 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
35 }
36 int res = OpenBCIWifiShieldBoard::config_board (conf, response);
37 if (res != (int)BrainFlowExitCodes::STATUS_OK)
38 {
39 gain_tracker.revert_config ();
40 }
41 return res;
42}
43
44void CytonWifi::read_thread ()
45{

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