Skip to content

Commit

Permalink
clang fomatted
Browse files Browse the repository at this point in the history
  • Loading branch information
aavaa-farnood committed Nov 2, 2023
1 parent a515a75 commit 9b0810a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/board_controller/aavaa/aavaa_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,13 @@ void AAVAAv3::read_data (
}

// imu status byte
package[board_descr["default"]["other_channels"][3].get<int> ()] =
(double)data_frame[41];
package[board_descr["default"]["other_channels"][3].get<int> ()] = (double)data_frame[41];

// timestamp
try
{
package[board_descr["default"]["other_channels"][4].get<int> ()] =
*reinterpret_cast<uint32_t *> (data_frame + 42) *
TIMESTAMP_SCALE;
*reinterpret_cast<uint32_t *> (data_frame + 42) * TIMESTAMP_SCALE;
}
catch (const std::exception &e)
{
Expand Down
6 changes: 3 additions & 3 deletions src/board_controller/board_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> lock (mutex);
if ((config == NULL) || (response == NULL) || (response_len == NULL))
Expand All @@ -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)
Expand Down

0 comments on commit 9b0810a

Please sign in to comment.