Skip to content

Commit 37b84ba

Browse files
committed
updated formatting
1 parent d0c92f2 commit 37b84ba

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/board_controller/ant_neuro/ant_neuro.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ int AntNeuroBoard::start_stream (int buffer_size, const char *streamer_params)
144144

145145
try
146146
{
147-
if (impedance_mode) {
148-
safe_logger (spdlog::level::info,
149-
"start impedance stream");
150-
stream = amp->OpenImpedanceStream();
147+
if (impedance_mode)
148+
{
149+
safe_logger (spdlog::level::info, "start impedance stream");
150+
stream = amp->OpenImpedanceStream ();
151151
}
152152
else
153153
{
@@ -281,9 +281,10 @@ void AntNeuroBoard::read_thread ()
281281
push_package (package);
282282
}
283283
std::this_thread::sleep_for (std::chrono::milliseconds (1));
284-
if (impedance_mode) {
285-
// some more sleep; twice every second should be more than enough
286-
// if left out, it yields impedances at around 64 Hz
284+
if (impedance_mode)
285+
{
286+
// some more sleep; twice every second should be more than enough
287+
// if left out, it yields impedances at around 64 Hz
287288
std::this_thread::sleep_for (std::chrono::milliseconds (500));
288289
}
289290
}
@@ -406,16 +407,16 @@ int AntNeuroBoard::config_board (std::string config, std::string &response)
406407

407408
return (int)BrainFlowExitCodes::STATUS_OK;
408409
}
409-
else if (config.find(mode_prefix) != std::string::npos)
410+
else if (config.find (mode_prefix) != std::string::npos)
410411
{
411412
bool new_impedance_mode;
412-
std::string value = config.substr(mode_prefix.size());
413+
std::string value = config.substr (mode_prefix.size ());
413414

414415
if (value == "0" || value == "1")
415416
{
416417
try
417418
{
418-
new_impedance_mode = static_cast<bool>(std::stod(value));
419+
new_impedance_mode = static_cast<bool> (std::stod (value));
419420
}
420421
catch (...)
421422
{

0 commit comments

Comments
 (0)