|
1 | 1 | #include "muse_anthena.h" |
2 | 2 |
|
3 | 3 | #include <algorithm> |
4 | | -#include <chrono> |
5 | 4 | #include <cctype> |
| 5 | +#include <chrono> |
6 | 6 | #include <cstdint> |
7 | 7 | #include <cstring> |
8 | 8 | #include <sstream> |
@@ -159,8 +159,8 @@ int MuseAnthena::parse_muse_options () |
159 | 159 | std::string preset = to_lower (other_info); |
160 | 160 | if (!is_valid_muse_preset (preset)) |
161 | 161 | { |
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); |
164 | 164 | return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR; |
165 | 165 | } |
166 | 166 | muse_preset = preset; |
@@ -289,8 +289,8 @@ int MuseAnthena::prepare_session () |
289 | 289 | { |
290 | 290 | return res; |
291 | 291 | } |
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); |
294 | 294 | if (params.timeout < 1) |
295 | 295 | { |
296 | 296 | params.timeout = 6; |
@@ -407,7 +407,8 @@ int MuseAnthena::prepare_session () |
407 | 407 | } |
408 | 408 | } |
409 | 409 |
|
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) || |
411 | 412 | (strcmp (service.characteristics[j].uuid.value, MUSE_ANTHENA_GATT_DATA_2) == 0)) |
412 | 413 | { |
413 | 414 | // Athena multiplexes EEG, IMU, optics, and battery packets across data |
@@ -902,8 +903,8 @@ void MuseAnthena::parse_sensor_payload ( |
902 | 903 | } |
903 | 904 | for (int channel = 0; channel < 3; channel++) |
904 | 905 | { |
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)); |
907 | 908 | if ((size_t)channel < gyro_channels.size ()) |
908 | 909 | { |
909 | 910 | package[(size_t)gyro_channels[(size_t)channel]] = |
|
0 commit comments