Fix ADS1115 calculation (#606)

Fixes https://github.com/esphome/issues/issues/393
This commit is contained in:
Otto Winter 2019-06-03 14:31:01 +02:00 committed by GitHub
parent b5e75793e1
commit fe24745815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_; }