summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ADS1115_WE.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp
index d00cdfc..823948a 100644
--- a/src/ADS1115_WE.cpp
+++ b/src/ADS1115_WE.cpp
@@ -289,8 +289,7 @@ int16_t ADS1115_WE::getRawResult(){
int16_t ADS1115_WE::getResultWithRange(int16_t min, int16_t max){
int16_t rawResult = getRawResult();
- int16_t result = 0;
- result = map(rawResult, -32767, 32767, min, max);
+ int16_t result = map(rawResult, -32767, 32767, min, max);
return result;
}