| 824 | } |
| 825 | |
| 826 | int Ganglion::call_close () |
| 827 | { |
| 828 | if (dll_loader == NULL) |
| 829 | { |
| 830 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 831 | } |
| 832 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("close_ganglion"); |
| 833 | if (func == NULL) |
| 834 | { |
| 835 | safe_logger (spdlog::level::err, "failed to get function address for close_ganglion"); |
| 836 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 837 | } |
| 838 | |
| 839 | int res = func (NULL); |
| 840 | if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK) |
| 841 | { |
| 842 | safe_logger (spdlog::level::err, "failed to close ganglion {}", res); |
| 843 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 844 | } |
| 845 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 846 | } |
| 847 | |
| 848 | int Ganglion::call_release () |
| 849 | { |
nothing calls this directly
no test coverage detected