mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Const a pointer argument
This commit is contained in:
parent
5a46916594
commit
160ba51041
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ bool MCP3428Component::poll_result(float &voltage) {
|
|||
}
|
||||
}
|
||||
|
||||
float MCP3428Component::convert_anwser_to_voltage_(uint8_t *anwser) {
|
||||
float MCP3428Component::convert_anwser_to_voltage_(uint8_t const *anwser) {
|
||||
uint8_t config_resolution = (this->prev_config_ >> 2) & 0b00000011;
|
||||
uint8_t config_gain = this->prev_config_ & 0b00000011;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ class MCP3428Component : public Component, public i2c::I2CDevice {
|
|||
void abandon_current_measurement() { single_measurement_active_ = false; }
|
||||
|
||||
protected:
|
||||
float convert_anwser_to_voltage_(uint8_t *anwser);
|
||||
float convert_anwser_to_voltage_(uint8_t const *anwser);
|
||||
|
||||
uint8_t prev_config_{0};
|
||||
uint32_t last_config_write_ms_{0};
|
||||
|
|
Loading…
Reference in a new issue