| 470 | } |
| 471 | |
| 472 | int Muse::stop_stream () |
| 473 | { |
| 474 | if (muse_peripheral == NULL) |
| 475 | { |
| 476 | return (int)BrainFlowExitCodes::BOARD_NOT_CREATED_ERROR; |
| 477 | } |
| 478 | int res = (int)BrainFlowExitCodes::STATUS_OK; |
| 479 | if (is_streaming) |
| 480 | { |
| 481 | res = config_board ("h"); |
| 482 | } |
| 483 | else |
| 484 | { |
| 485 | res = (int)BrainFlowExitCodes::STREAM_ALREADY_RUN_ERROR; |
| 486 | } |
| 487 | is_streaming = false; |
| 488 | last_fifth_chan_timestamp = -1.0; |
| 489 | last_ppg_timestamp = -1.0; |
| 490 | last_eeg_timestamp = -1.0; |
| 491 | last_aux_timestamp = -1.0; |
| 492 | return res; |
| 493 | } |
| 494 | |
| 495 | int Muse::release_session () |
| 496 | { |
nothing calls this directly
no test coverage detected