| 168 | } |
| 169 | |
| 170 | int PIEEGBoard::release_session () |
| 171 | { |
| 172 | if (initialized) |
| 173 | { |
| 174 | if (keep_alive) |
| 175 | { |
| 176 | stop_stream (); |
| 177 | } |
| 178 | free_packages (); |
| 179 | initialized = false; |
| 180 | } |
| 181 | if (spi) |
| 182 | { |
| 183 | spi_close (spi); |
| 184 | spi_free (spi); |
| 185 | spi = NULL; |
| 186 | } |
| 187 | if (gpio_in) |
| 188 | { |
| 189 | gpio_close (gpio_in); |
| 190 | gpio_free (gpio_in); |
| 191 | gpio_in = NULL; |
| 192 | } |
| 193 | |
| 194 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 195 | } |
| 196 | |
| 197 | int PIEEGBoard::config_board (std::string config, std::string &response) |
| 198 | { |
nothing calls this directly
no test coverage detected