Skip to content

Commit 33a6323

Browse files
author
GatCode
committed
Fix Compiler Warning
1 parent c6025ca commit 33a6323

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ScaleStabilizer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ void ScaleStabilizer::add(double reading)
9090
int oldestReadingIdx = (_currentReadingIdx + 1) % _windowSize;
9191
_window[oldestReadingIdx] = reading;
9292
_currentReadingIdx = oldestReadingIdx;
93-
_abortCounter = _abortCounter < _windowSize / 2 ? _abortCounter++ : _abortCounter;
93+
if (_abortCounter < _windowSize / 2)
94+
{
95+
_abortCounter++;
96+
}
9497
return;
9598
}
9699

0 commit comments

Comments
 (0)