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

Method config_board

src/board_controller/openbci/cyton_daisy_wifi.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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