| 238 | } |
| 239 | |
| 240 | int SynchroniBoard::call_close () |
| 241 | { |
| 242 | if (dll_loader == NULL) |
| 243 | { |
| 244 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 245 | } |
| 246 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("synchroni_close_device"); |
| 247 | if (func == NULL) |
| 248 | { |
| 249 | safe_logger (spdlog::level::err, "failed to get function address for close_device"); |
| 250 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 251 | } |
| 252 | std::tuple<std::string> info = std::make_tuple (params.mac_address); |
| 253 | return func ((void *)&info); |
| 254 | } |
| 255 | |
| 256 | int SynchroniBoard::call_release () |
| 257 | { |
nothing calls this directly
no test coverage detected