From 65e400920bf25b41e2c8dfd2905abf2e3e735913 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Wolle) Ewald" Date: Tue, 6 Apr 2021 23:26:14 +0200 Subject: Add files via upload --- src/ADS1115_WE.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp index 3b3be9c..debe73a 100644 --- a/src/ADS1115_WE.cpp +++ b/src/ADS1115_WE.cpp @@ -139,8 +139,8 @@ void ADS1115_WE::setVoltageRange_mV(ADS1115_RANGE range){ currentConfReg &= ~(0x0E00); currentConfReg |= range; writeRegister(ADS1115_CONFIG_REG, currentConfReg); - convRate rate = getConvRate(); - delayAccToRate(rate); + convRate rate = getConvRate(); + delayAccToRate(rate); } void ADS1115_WE::setAutoRange(){ @@ -150,7 +150,7 @@ void ADS1115_WE::setAutoRange(){ if(deviceMeasureMode == ADS1115_SINGLE){ setMeasureMode(ADS1115_CONTINUOUS); convRate rate = getConvRate(); - delayAccToRate(rate); + delayAccToRate(rate); } float result = abs(getResult_mV()); -- cgit v1.2.3