| 779 | } |
| 780 | |
| 781 | int Ganglion::call_start () |
| 782 | { |
| 783 | if (dll_loader == NULL) |
| 784 | { |
| 785 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 786 | } |
| 787 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("start_stream"); |
| 788 | if (func == NULL) |
| 789 | { |
| 790 | safe_logger (spdlog::level::err, "failed to get function address for start_stream"); |
| 791 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 792 | } |
| 793 | |
| 794 | safe_logger (spdlog::level::info, "use command {} to start streaming", start_command.c_str ()); |
| 795 | int res = func ((void *)start_command.c_str ()); |
| 796 | if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK) |
| 797 | { |
| 798 | safe_logger (spdlog::level::err, "failed to start streaming {}", res); |
| 799 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 800 | } |
| 801 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 802 | } |
| 803 | |
| 804 | int Ganglion::call_stop () |
| 805 | { |
nothing calls this directly
no test coverage detected