| 27 | } |
| 28 | |
| 29 | int 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 | |
| 44 | void CytonWifi::read_thread () |
| 45 | { |
nothing calls this directly
no test coverage detected