From 5470ee16a99f44cc5490104dff02b80e56fa0971 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Wolle) Ewald" Date: Sat, 15 May 2021 12:33:19 +0200 Subject: Update ADS1115_WE.cpp --- src/ADS1115_WE.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3