summaryrefslogtreecommitdiffstats
path: root/src/ADS1115_WE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ADS1115_WE.cpp')
-rw-r--r--src/ADS1115_WE.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ADS1115_WE.cpp b/src/ADS1115_WE.cpp
index 0716372..b7652e8 100644
--- a/src/ADS1115_WE.cpp
+++ b/src/ADS1115_WE.cpp
@@ -190,6 +190,8 @@ void ADS1115_WE::setPermanentAutoRangeMode(bool autoMode){
}
void ADS1115_WE::delayAccToRate(convRate cr){
+ if (skip_delays)
+ return;
switch(cr){
case ADS1115_8_SPS:
delay(130);
@@ -351,4 +353,4 @@ uint16_t ADS1115_WE::readRegister(uint8_t reg){
#endif
regValue = (MSByte<<8) + LSByte;
return regValue;
-} \ No newline at end of file
+}