Skip to content

Commit 59ea45c

Browse files
Fix typo in IWearWrapper and IWearLogger (#186)
2 parents 8dc9ac9 + 75f3107 commit 59ea45c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Fixed EMG normalization value in IWearWrapper and IWearLogger (https://github.com/robotology/wearables/pull/186)
11+
912
## [1.7.1] - 2023-02-07
1013

1114
### Changed

wrappers/IWear/src/IWearWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void IWearWrapper::run()
190190
for (const auto& sensor : pImpl->emgSensors) {
191191
double value, normalization;
192192
// double normalizationValue;
193-
if (!sensor->getEmgSignal(value) || !sensor->getEmgSignal(normalization)) {
193+
if (!sensor->getEmgSignal(value) || !sensor->getNormalizationValue(normalization)) {
194194
yWarning() << logPrefix << "[EmgSensors] "
195195
<< "Failed to read data, "
196196
<< "sensor status is "

wrappers/IWearLogger/src/IWearLogger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void IWearLogger::run()
300300
for (const auto& sensor : pImpl->emgSensors) {
301301
double value, normalization;
302302
// double normalizationValue;
303-
if (!sensor->getEmgSignal(value) || !sensor->getEmgSignal(normalization)) {
303+
if (!sensor->getEmgSignal(value) || !sensor->getNormalizationValue(normalization)) {
304304
yWarning() << logPrefix << "[EmgSensors] "
305305
<< "Failed to read data, "
306306
<< "sensor status is " << static_cast<int>(sensor->getSensorStatus());

0 commit comments

Comments
 (0)