From bbbfdb41214801cdf3060eb7c4b02575491d2721 Mon Sep 17 00:00:00 2001 From: Anton Viktorov Date: Tue, 30 Apr 2024 10:32:41 +0300 Subject: [PATCH] Update esphome/components/ina2xx_base/ina2xx_base.h Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/ina2xx_base/ina2xx_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ina2xx_base/ina2xx_base.h b/esphome/components/ina2xx_base/ina2xx_base.h index d8acaf8aac..c1e2ced8b4 100644 --- a/esphome/components/ina2xx_base/ina2xx_base.h +++ b/esphome/components/ina2xx_base/ina2xx_base.h @@ -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; }