Skip to content

Commit be30e54

Browse files
author
GatCode
committed
Fix Compiler Warnings
1 parent e609762 commit be30e54

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ScaleStabilizer",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A library to stabilize load cell readings",
55
"keywords": "scale, load cell, HC711",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ScaleStabilizer
2-
version=1.0.1
2+
version=1.0.2
33
author=GatCode <gatcode@wdw.one>
44
maintainer=GatCode <gatcode@wdw.one>
55
sentence=A library to stabilize load cell readings.

src/ScaleStabilizer.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#include "ScaleStabilizer.h"
22

33
/*!
4-
* @brief Construct a new Scale Stabilizer:: S Cale Stabilizer object
4+
* @brief construct a new ScaleStabilizer:: Scale Stabilizer object
55
*/
6-
ScaleStabilizer::SCaleStabilizer()
7-
{
8-
}
6+
ScaleStabilizer::ScaleStabilizer() {}
97

8+
/*!
9+
* @brief deconstruct a ScaleStabilizer object
10+
*/
1011
ScaleStabilizer::~ScaleStabilizer()
1112
{
1213
delete _window;
@@ -36,9 +37,10 @@ bool ScaleStabilizer::isBufferMonotone()
3637
{
3738
if (_window[i] != _window[0])
3839
{
39-
break;
40+
return false;
4041
}
4142
}
43+
return true;
4244
}
4345

4446
/*!

0 commit comments

Comments
 (0)