| 128 | } |
| 129 | |
| 130 | int Emotibit::stop_stream () |
| 131 | { |
| 132 | if (keep_alive) |
| 133 | { |
| 134 | if (send_control_msg (MODE_LOW_POWER) != (int)BrainFlowExitCodes::STATUS_OK) |
| 135 | { |
| 136 | safe_logger (spdlog::level::warn, "failed to set low power mode"); |
| 137 | } |
| 138 | keep_alive = false; |
| 139 | streaming_thread.join (); |
| 140 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 141 | } |
| 142 | return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING; |
| 143 | } |
| 144 | |
| 145 | int Emotibit::release_session () |
| 146 | { |
nothing calls this directly
no outgoing calls
no test coverage detected