| 12 | |
| 13 | |
| 14 | int 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 | |
| 29 | void CytonDaisy::read_thread () |
| 30 | { |
nothing calls this directly
no test coverage detected