mirror of
https://github.com/esphome/esphome.git
synced 2024-11-16 10:45:48 +01:00
Update esphome/components/ina2xx_base/ina2xx_base.h
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
0ccca50586
commit
bbbfdb4121
@ -117,7 +117,7 @@ class INA2XX : public PollingComponent {
|
||||
void loop() override;
|
||||
void dump_config() override;
|
||||
|
||||
void set_shunt_resistance_ohm(float shunt_resistance_ohm) { shunt_resistance_ohm_ = shunt_resistance_ohm; }
|
||||
void set_shunt_resistance_ohm(float shunt_resistance_ohm) { this->shunt_resistance_ohm_ = shunt_resistance_ohm; }
|
||||
void set_max_current_a(float max_current_a) { max_current_a_ = max_current_a; }
|
||||
void set_adc_range(uint8_t range) { adc_range_ = (range == 0) ? AdcRange::ADC_RANGE_0 : AdcRange::ADC_RANGE_1; }
|
||||
void set_adc_time_bus_voltage(AdcTime time) { adc_time_bus_voltage_ = time; }
|
||||
|
Loading…
Reference in New Issue
Block a user