| 757 | } |
| 758 | |
| 759 | int Ganglion::call_config (char *config) |
| 760 | { |
| 761 | if (dll_loader == NULL) |
| 762 | { |
| 763 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 764 | } |
| 765 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("config_board"); |
| 766 | if (func == NULL) |
| 767 | { |
| 768 | safe_logger (spdlog::level::err, "failed to get function address for config_board"); |
| 769 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 770 | } |
| 771 | |
| 772 | int res = func (config); |
| 773 | if (res != GanglionLib::CustomExitCodes::STATUS_OK) |
| 774 | { |
| 775 | safe_logger (spdlog::level::err, "failed to config board {}", res); |
| 776 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 777 | } |
| 778 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 779 | } |
| 780 | |
| 781 | int Ganglion::call_start () |
| 782 | { |
nothing calls this directly
no test coverage detected