diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-11-03 19:42:47 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-11-03 19:42:47 +0300 |
commit | 865212a0d34712eab6538121cf05465eb8722ae2 (patch) | |
tree | ad496ca73f634f254a22bdc376c56fddcb591a87 /src | |
parent | a96a90fcc2df7a6bb2aa02705c3539e33b89026d (diff) |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor.py | 4 |
1 files 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): |