From fe24745815a33cb69565addd813a16bc4ca34728 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 3 Jun 2019 14:31:01 +0200 Subject: [PATCH] Fix ADS1115 calculation (#606) Fixes https://github.com/esphome/issues/issues/393 --- esphome/components/ads1115/ads1115.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ads1115/ads1115.cpp b/esphome/components/ads1115/ads1115.cpp index 94ff3a1186..0d82fce533 100644 --- a/esphome/components/ads1115/ads1115.cpp +++ b/esphome/components/ads1115/ads1115.cpp @@ -144,7 +144,7 @@ float ADS1115Component::request_measurement(ADS1115Sensor *sensor) { } this->status_clear_warning(); - return millivolts / 1e4f; + return millivolts / 1e3f; } uint8_t ADS1115Sensor::get_multiplexer() const { return this->multiplexer_; }