| 408 | } |
| 409 | |
| 410 | int get_current_board_data (int num_samples, int preset, double *data_buf, int *returned_samples, |
| 411 | int board_id, const char *json_brainflow_input_params) |
| 412 | { |
| 413 | std::lock_guard<std::mutex> lock (mutex); |
| 414 | |
| 415 | std::pair<int, struct BrainFlowInputParams> key; |
| 416 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 417 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 418 | { |
| 419 | return res; |
| 420 | } |
| 421 | auto board_it = boards.find (key); |
| 422 | return board_it->second->get_current_board_data ( |
| 423 | num_samples, preset, data_buf, returned_samples); |
| 424 | } |
| 425 | |
| 426 | int get_board_data_count ( |
| 427 | int preset, int *result, int board_id, const char *json_brainflow_input_params) |
no test coverage detected