MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / preset_to_string

Method preset_to_string

src/board_controller/board.cpp:503–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503std::string Board::preset_to_string (int preset)
504{
505 if (preset == (int)BrainFlowPresets::DEFAULT_PRESET)
506 {
507 return "default";
508 }
509 else if (preset == (int)BrainFlowPresets::AUXILIARY_PRESET)
510 {
511 return "auxiliary";
512 }
513 else if (preset == (int)BrainFlowPresets::ANCILLARY_PRESET)
514 {
515 return "ancillary";
516 }
517
518 return "";
519}
520
521int Board::preset_to_int (std::string preset)
522{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected