From 865212a0d34712eab6538121cf05465eb8722ae2 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 3 Nov 2021 19:42:47 +0300 Subject: fix --- src/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monitor.py b/src/monitor.py index 1efe88a..d332434 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -260,8 +260,8 @@ class InverterMonitor(Thread): self.error_handler = handler def set_ac_current_range(self, ac_current_range: Union[List, Tuple] = ()) -> None: - self.max_ac_current = ac_current_range[0] - self.min_ac_current = ac_current_range[1] + self.min_ac_current = ac_current_range[0] + self.max_ac_current = ac_current_range[1] _logger.debug(f'setting AC current range to {ac_current_range[0]} A .. {ac_current_range[1]} A') def set_battery_under_voltage(self, v: float): -- cgit v1.2.3