summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2021-05-15 12:33:19 +0200
committerGitHub <noreply@github.com>2021-05-15 12:33:19 +0200
commit5470ee16a99f44cc5490104dff02b80e56fa0971 (patch)
treecf5a52ca0a5a735505bf5275e6f18fa3048a729e
parentAdd files via upload (diff)
downloadADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar.gz
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar.bz2
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar.lz
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar.xz
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.tar.zst
ADS1115_WE-5470ee16a99f44cc5490104dff02b80e56fa0971.zip
-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;
}