Skip to content

Commit

Permalink
Update default mode command
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplotkin committed Feb 22, 2024
1 parent 8c15bed commit 15bae7e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/board_controller/openbci/galea_v4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int GaleaV4::prepare_session ()
socket->set_timeout (socket_timeout);
// force default settings for device
std::string tmp;
std::string default_settings = "o"; // use demo mode with agnd
std::string default_settings = "d"; // use default mode
res = config_board (default_settings, tmp);
if (res != (int)BrainFlowExitCodes::STATUS_OK)
{
Expand All @@ -88,7 +88,7 @@ int GaleaV4::prepare_session ()
res = config_board (sampl_rate, tmp);
if (res != (int)BrainFlowExitCodes::STATUS_OK)
{
safe_logger (spdlog::level::err, "failed to apply defaul sampling rate");
safe_logger (spdlog::level::err, "failed to apply default sampling rate");
delete socket;
socket = NULL;
return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR;
Expand Down Expand Up @@ -209,13 +209,6 @@ int GaleaV4::config_board (std::string conf, std::string &response)
"recommended to call stop_stream before config_board");
}

// log gain for all channels
for (int i = 0; i < 28; i++)
{
safe_logger (spdlog::level::info, "gain for channel {} is {}", i,
gain_tracker.get_gain_for_channel (i));
}

return (int)BrainFlowExitCodes::STATUS_OK;
}

Expand Down

0 comments on commit 15bae7e

Please sign in to comment.