| 254 | } |
| 255 | |
| 256 | int SynchroniBoard::call_release () |
| 257 | { |
| 258 | if (dll_loader == NULL) |
| 259 | { |
| 260 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 261 | } |
| 262 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("synchroni_release"); |
| 263 | if (func == NULL) |
| 264 | { |
| 265 | safe_logger (spdlog::level::err, "failed to get function address for release"); |
| 266 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 267 | } |
| 268 | std::tuple<std::string> info = std::make_tuple (params.mac_address); |
| 269 | return func ((void *)&info); |
| 270 | } |
| 271 | |
| 272 | |
| 273 | int SynchroniBoard::prepare_session () |
nothing calls this directly
no test coverage detected