From a0d9d64f4ae55e2ff006a9e1273e3598219bdbf3 Mon Sep 17 00:00:00 2001 From: AranRhiod Date: Tue, 7 Jan 2025 11:44:28 -0500 Subject: [PATCH] cleanup synchroni_board.cpp --- .../synchroni/synchroni_board.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/board_controller/synchroni/synchroni_board.cpp b/src/board_controller/synchroni/synchroni_board.cpp index 7ddc1e83d..5a3cf39ae 100644 --- a/src/board_controller/synchroni/synchroni_board.cpp +++ b/src/board_controller/synchroni/synchroni_board.cpp @@ -95,7 +95,7 @@ void SynchroniBoard::read_thread () while (keep_alive) { int res = func ((void *)&info); -// int res = s_get_data((void *)&info); + if (res == (int)BrainFlowExitCodes::STATUS_OK) { if (state != (int)BrainFlowExitCodes::STATUS_OK) @@ -153,7 +153,7 @@ int SynchroniBoard::config_board (std::string config, std::string &response) memset(buffer, 0, sizeof(buffer)); std::tuple info = std::make_tuple (params.mac_address, config, buffer, BUFFER_SIZE); -// int res = s_config_device((void*)&info); + int res = func((void*)&info); response = buffer; return res; @@ -175,7 +175,7 @@ int SynchroniBoard::call_init () std::tuple info = std::make_tuple (board_id, params, board_descr); -// int res = s_initialize((void *)&info); + int res = func ((void *)&info); if (res != (int)BrainFlowExitCodes::STATUS_OK) { @@ -199,7 +199,7 @@ int SynchroniBoard::call_open () std::tuple info = std::make_tuple (params.mac_address); return func ((void*)&info); -// return s_open_device((void*)params.mac_address.c_str()); + } int SynchroniBoard::call_start () @@ -217,7 +217,7 @@ int SynchroniBoard::call_start () std::tuple info = std::make_tuple (params.mac_address); return func ((void*)&info); -// return s_start_stream((void*)params.mac_address.c_str()); + } int SynchroniBoard::call_stop () @@ -235,7 +235,7 @@ int SynchroniBoard::call_stop () std::tuple info = std::make_tuple (params.mac_address); return func ((void*)&info); -// return s_stop_stream((void*)params.mac_address.c_str()); + } int SynchroniBoard::call_close () @@ -253,7 +253,7 @@ int SynchroniBoard::call_close () std::tuple info = std::make_tuple (params.mac_address); return func ((void*)&info); -// return s_close_device((void*)params.mac_address.c_str()); + } int SynchroniBoard::call_release () @@ -271,10 +271,10 @@ int SynchroniBoard::call_release () std::tuple info = std::make_tuple (params.mac_address); return func ((void*)&info); -// return s_release((void*)params.mac_address.c_str()); + } -/////////////////////////////////////////////////////////////////// + int SynchroniBoard::prepare_session ()