summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-03 19:42:47 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-03 19:42:47 +0300
commit865212a0d34712eab6538121cf05465eb8722ae2 (patch)
treead496ca73f634f254a22bdc376c56fddcb591a87
parenta96a90fcc2df7a6bb2aa02705c3539e33b89026d (diff)
fix
-rw-r--r--src/monitor.py4
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):