| 24 | } |
| 25 | |
| 26 | int 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 | |
| 41 | void CytonDaisyWifi::read_thread () |
| 42 | { |
nothing calls this directly
no test coverage detected