diff options
author | Wolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de> | 2021-04-06 23:26:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 23:26:14 +0200 |
commit | 65e400920bf25b41e2c8dfd2905abf2e3e735913 (patch) | |
tree | dffbb0e987c0fa0e89bf2e0ec0fcb219bbd3ece5 /src | |
parent | Add files via upload (diff) | |
download | ADS1115_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')
-rw-r--r-- | src/ADS1115_WE.cpp | 6 |
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());
|