summaryrefslogtreecommitdiffstats
path: root/src/ADS1115_WE.cpp
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2021-04-06 23:26:14 +0200
committerGitHub <noreply@github.com>2021-04-06 23:26:14 +0200
commit65e400920bf25b41e2c8dfd2905abf2e3e735913 (patch)
treedffbb0e987c0fa0e89bf2e0ec0fcb219bbd3ece5 /src/ADS1115_WE.cpp
parentAdd files via upload (diff)
downloadADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar.gz
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar.bz2
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar.lz
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar.xz
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.tar.zst
ADS1115_WE-65e400920bf25b41e2c8dfd2905abf2e3e735913.zip
Diffstat (limited to 'src/ADS1115_WE.cpp')
-rw-r--r--src/ADS1115_WE.cpp6
1 files changed, 3 insertions, 3 deletions
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());