diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2021-05-15 12:33:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 12:33:19 +0200 |
commit | 5470ee16a99f44cc5490104dff02b80e56fa0971 (patch) | |
tree | cf5a52ca0a5a735505bf5275e6f18fa3048a729e | |
parent | Add files via upload (diff) | |
download | ADS1115_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 |
Diffstat (limited to '')
-rw-r--r-- | src/ADS1115_WE.cpp | 3 |
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;
}
|