Skip to content

Commit 2edd365

Browse files
committed
Fix Muse Anthena formatting
1 parent 8257691 commit 2edd365

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/board_controller/muse/inc/muse_anthena.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

3+
#include <condition_variable>
34
#include <cstddef>
45
#include <cstdint>
5-
#include <condition_variable>
66
#include <mutex>
77
#include <string>
88
#include <utility>

src/board_controller/muse/muse_anthena.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "muse_anthena.h"
22

33
#include <algorithm>
4-
#include <chrono>
54
#include <cctype>
5+
#include <chrono>
66
#include <cstdint>
77
#include <cstring>
88
#include <sstream>
@@ -159,8 +159,8 @@ int MuseAnthena::parse_muse_options ()
159159
std::string preset = to_lower (other_info);
160160
if (!is_valid_muse_preset (preset))
161161
{
162-
safe_logger (spdlog::level::err, "Invalid MuseAnthena preset in other_info: {}",
163-
other_info);
162+
safe_logger (
163+
spdlog::level::err, "Invalid MuseAnthena preset in other_info: {}", other_info);
164164
return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
165165
}
166166
muse_preset = preset;
@@ -289,8 +289,8 @@ int MuseAnthena::prepare_session ()
289289
{
290290
return res;
291291
}
292-
safe_logger (spdlog::level::info, "Use MuseAnthena preset {} and low_latency {}",
293-
muse_preset, enable_low_latency);
292+
safe_logger (spdlog::level::info, "Use MuseAnthena preset {} and low_latency {}", muse_preset,
293+
enable_low_latency);
294294
if (params.timeout < 1)
295295
{
296296
params.timeout = 6;
@@ -407,7 +407,8 @@ int MuseAnthena::prepare_session ()
407407
}
408408
}
409409

410-
if ((strcmp (service.characteristics[j].uuid.value, MUSE_ANTHENA_GATT_DATA_1) == 0) ||
410+
if ((strcmp (service.characteristics[j].uuid.value, MUSE_ANTHENA_GATT_DATA_1) ==
411+
0) ||
411412
(strcmp (service.characteristics[j].uuid.value, MUSE_ANTHENA_GATT_DATA_2) == 0))
412413
{
413414
// Athena multiplexes EEG, IMU, optics, and battery packets across data
@@ -902,8 +903,8 @@ void MuseAnthena::parse_sensor_payload (
902903
}
903904
for (int channel = 0; channel < 3; channel++)
904905
{
905-
int16_t raw = cast_16bit_to_int16_little_endian ((const unsigned char *)(data +
906-
(sample * config.n_channels + channel + 3) * 2));
906+
int16_t raw = cast_16bit_to_int16_little_endian (
907+
(const unsigned char *)(data + (sample * config.n_channels + channel + 3) * 2));
907908
if ((size_t)channel < gyro_channels.size ())
908909
{
909910
package[(size_t)gyro_channels[(size_t)channel]] =

0 commit comments

Comments
 (0)