Skip to content

Commit a0d9d64

Browse files
committed
cleanup synchroni_board.cpp
1 parent c9f2edc commit a0d9d64

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/board_controller/synchroni/synchroni_board.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void SynchroniBoard::read_thread ()
9595
while (keep_alive)
9696
{
9797
int res = func ((void *)&info);
98-
// int res = s_get_data((void *)&info);
98+
9999
if (res == (int)BrainFlowExitCodes::STATUS_OK)
100100
{
101101
if (state != (int)BrainFlowExitCodes::STATUS_OK)
@@ -153,7 +153,7 @@ int SynchroniBoard::config_board (std::string config, std::string &response)
153153
memset(buffer, 0, sizeof(buffer));
154154
std::tuple<std::string, std::string, char *, int> info =
155155
std::make_tuple (params.mac_address, config, buffer, BUFFER_SIZE);
156-
// int res = s_config_device((void*)&info);
156+
157157
int res = func((void*)&info);
158158
response = buffer;
159159
return res;
@@ -175,7 +175,7 @@ int SynchroniBoard::call_init ()
175175

176176
std::tuple<int, struct BrainFlowInputParams, json> info =
177177
std::make_tuple (board_id, params, board_descr);
178-
// int res = s_initialize((void *)&info);
178+
179179
int res = func ((void *)&info);
180180
if (res != (int)BrainFlowExitCodes::STATUS_OK)
181181
{
@@ -199,7 +199,7 @@ int SynchroniBoard::call_open ()
199199
std::tuple<std::string> info =
200200
std::make_tuple (params.mac_address);
201201
return func ((void*)&info);
202-
// return s_open_device((void*)params.mac_address.c_str());
202+
203203
}
204204

205205
int SynchroniBoard::call_start ()
@@ -217,7 +217,7 @@ int SynchroniBoard::call_start ()
217217
std::tuple<std::string> info =
218218
std::make_tuple (params.mac_address);
219219
return func ((void*)&info);
220-
// return s_start_stream((void*)params.mac_address.c_str());
220+
221221
}
222222

223223
int SynchroniBoard::call_stop ()
@@ -235,7 +235,7 @@ int SynchroniBoard::call_stop ()
235235
std::tuple<std::string> info =
236236
std::make_tuple (params.mac_address);
237237
return func ((void*)&info);
238-
// return s_stop_stream((void*)params.mac_address.c_str());
238+
239239
}
240240

241241
int SynchroniBoard::call_close ()
@@ -253,7 +253,7 @@ int SynchroniBoard::call_close ()
253253
std::tuple<std::string> info =
254254
std::make_tuple (params.mac_address);
255255
return func ((void*)&info);
256-
// return s_close_device((void*)params.mac_address.c_str());
256+
257257
}
258258

259259
int SynchroniBoard::call_release ()
@@ -271,10 +271,10 @@ int SynchroniBoard::call_release ()
271271
std::tuple<std::string> info =
272272
std::make_tuple (params.mac_address);
273273
return func ((void*)&info);
274-
// return s_release((void*)params.mac_address.c_str());
274+
275275
}
276276

277-
///////////////////////////////////////////////////////////////////
277+
278278

279279

280280
int SynchroniBoard::prepare_session ()

0 commit comments

Comments
 (0)