Hey, everybody!
I think I found a bug in the example code that causes incorrect reading of EEG values.
I have a NeoRec cap 21 device.
The error is in line 251
const size_t sampleCount = CHECK(itemCount(nb2GetData(id, data.data(), uint32_t(data.size() * sizeof(int32_t))), sampleSize));
Should be corrected to
const size_t sampleCount = CHECK(itemCount(nb2GetData(id, data.data(), uint32_t(data.size() * sizeof(int32_t))), sampleSize * sizeof(int32_t))));
Could you please check this line of code!
Hey, everybody!
I think I found a bug in the example code that causes incorrect reading of EEG values.
I have a NeoRec cap 21 device.
The error is in line 251
const size_t sampleCount = CHECK(itemCount(nb2GetData(id, data.data(), uint32_t(data.size() * sizeof(int32_t))), sampleSize));Should be corrected to
const size_t sampleCount = CHECK(itemCount(nb2GetData(id, data.data(), uint32_t(data.size() * sizeof(int32_t))), sampleSize * sizeof(int32_t))));Could you please check this line of code!