MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / stop_stream

Method stop_stream

src/board_controller/muse/muse.cpp:472–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472int 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
495int Muse::release_session ()
496{

Callers

nothing calls this directly

Calls 1

config_boardFunction · 0.50

Tested by

no test coverage detected