mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
Fix ADS1115 calculation (#606)
Fixes https://github.com/esphome/issues/issues/393
This commit is contained in:
parent
6c564c7b7f
commit
32c0e7c2ae
@ -144,7 +144,7 @@ float ADS1115Component::request_measurement(ADS1115Sensor *sensor) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this->status_clear_warning();
|
this->status_clear_warning();
|
||||||
return millivolts / 1e4f;
|
return millivolts / 1e3f;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t ADS1115Sensor::get_multiplexer() const { return this->multiplexer_; }
|
uint8_t ADS1115Sensor::get_multiplexer() const { return this->multiplexer_; }
|
||||||
|
Loading…
Reference in New Issue
Block a user