| 123 | } |
| 124 | |
| 125 | std::string MLModel::get_version () |
| 126 | { |
| 127 | char version[64]; |
| 128 | int string_len = 0; |
| 129 | int res = ::get_version_ml_module (version, &string_len, 64); |
| 130 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 131 | { |
| 132 | throw BrainFlowException ("failed to get board info", res); |
| 133 | } |
| 134 | std::string verion_str (version, string_len); |
| 135 | |
| 136 | return verion_str; |
| 137 | } |
nothing calls this directly
no test coverage detected