| 424 | } |
| 425 | |
| 426 | int get_board_data_count ( |
| 427 | int preset, int *result, int board_id, const char *json_brainflow_input_params) |
| 428 | { |
| 429 | std::lock_guard<std::mutex> lock (mutex); |
| 430 | |
| 431 | std::pair<int, struct BrainFlowInputParams> key; |
| 432 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 433 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 434 | { |
| 435 | return res; |
| 436 | } |
| 437 | auto board_it = boards.find (key); |
| 438 | return board_it->second->get_board_data_count (preset, result); |
| 439 | } |
| 440 | |
| 441 | int get_board_data (int data_count, int preset, double *data_buf, int board_id, |
| 442 | const char *json_brainflow_input_params) |
no test coverage detected