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);