From 9b0810aed39cb7377e3c9cf2c3a84bb22a9e1abe Mon Sep 17 00:00:00 2001 From: aavaa-farnood Date: Thu, 2 Nov 2023 10:32:42 -0400 Subject: [PATCH] clang fomatted --- src/board_controller/aavaa/aavaa_v3.cpp | 6 ++---- src/board_controller/board_controller.cpp | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/board_controller/aavaa/aavaa_v3.cpp b/src/board_controller/aavaa/aavaa_v3.cpp index dbc8b35b8..7387581c1 100644 --- a/src/board_controller/aavaa/aavaa_v3.cpp +++ b/src/board_controller/aavaa/aavaa_v3.cpp @@ -535,15 +535,13 @@ void AAVAAv3::read_data ( } // imu status byte - package[board_descr["default"]["other_channels"][3].get ()] = - (double)data_frame[41]; + package[board_descr["default"]["other_channels"][3].get ()] = (double)data_frame[41]; // timestamp try { package[board_descr["default"]["other_channels"][4].get ()] = - *reinterpret_cast (data_frame + 42) * - TIMESTAMP_SCALE; + *reinterpret_cast (data_frame + 42) * TIMESTAMP_SCALE; } catch (const std::exception &e) { diff --git a/src/board_controller/board_controller.cpp b/src/board_controller/board_controller.cpp index f6e73a208..c1850ab5d 100644 --- a/src/board_controller/board_controller.cpp +++ b/src/board_controller/board_controller.cpp @@ -449,8 +449,8 @@ int java_set_jnienv (JNIEnv *java_jnienv) return (int)BrainFlowExitCodes::STATUS_OK; } -int config_board (const char *config, int config_len, char *response, int *response_len, int board_id, - const char *json_brainflow_input_params) +int config_board (const char *config, int config_len, char *response, int *response_len, + int board_id, const char *json_brainflow_input_params) { std::lock_guard lock (mutex); if ((config == NULL) || (response == NULL) || (response_len == NULL)) @@ -465,7 +465,7 @@ int config_board (const char *config, int config_len, char *response, int *respo return res; } auto board_it = boards.find (key); - std::string conf(config, config_len); + std::string conf (config, config_len); std::string resp = ""; res = board_it->second->config_board (conf, resp); if (res == (int)BrainFlowExitCodes::STATUS_OK)