From 2d315b5dca57e2b11da0a1c0f4451115f2cb85fe Mon Sep 17 00:00:00 2001 From: Carter Nelson Date: Fri, 2 Feb 2024 11:44:11 -0800 Subject: [PATCH] Revert "Fix doc string and millivolts value in examples" --- Adafruit_ADS1X15.cpp | 2 +- examples/continuous/continuous.ino | 2 +- examples/nonblocking/nonblocking.ino | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Adafruit_ADS1X15.cpp b/Adafruit_ADS1X15.cpp index 50ea4e4..80a89a3 100644 --- a/Adafruit_ADS1X15.cpp +++ b/Adafruit_ADS1X15.cpp @@ -276,7 +276,7 @@ int16_t Adafruit_ADS1X15::getLastConversionResults() { /**************************************************************************/ /*! - @brief Compute volts for the given raw counts. + @brief Returns true if conversion is complete, false otherwise. @param counts the ADC reading in raw counts diff --git a/examples/continuous/continuous.ino b/examples/continuous/continuous.ino index 1d8007d..ee60140 100644 --- a/examples/continuous/continuous.ino +++ b/examples/continuous/continuous.ino @@ -61,7 +61,7 @@ void loop(void) int16_t results = ads.getLastConversionResults(); - Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)/1000); Serial.println("mV)"); + Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)); Serial.println("mV)"); new_data = false; diff --git a/examples/nonblocking/nonblocking.ino b/examples/nonblocking/nonblocking.ino index fb3d4dc..9d6416d 100644 --- a/examples/nonblocking/nonblocking.ino +++ b/examples/nonblocking/nonblocking.ino @@ -42,7 +42,7 @@ void loop(void) int16_t results = ads.getLastConversionResults(); - Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)/1000); Serial.println("mV)"); + Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(ads.computeVolts(results)); Serial.println("mV)"); // Start another conversion. ads.startADCReading(ADS1X15_REG_CONFIG_MUX_DIFF_0_1, /*continuous=*/false);