diff --git a/enervent-ctrl-python/src/EnerventCoils.py b/enervent-ctrl-python/src/EnerventCoils.py index 5a6607c..45c8fd1 100644 --- a/enervent-ctrl-python/src/EnerventCoils.py +++ b/enervent-ctrl-python/src/EnerventCoils.py @@ -83,6 +83,9 @@ class PingvinCoils(): ] def __init__(self, serialdevice='/dev/ttyS0', modbusaddr=1, debug=False): + self.update_coils(serialdevice, modbusaddr, debug) + + def update_coils(self, serialdevice='/dev/ttyS0', modbusaddr=1, debug=False): self.pingvin = minimalmodbus.Instrument(serialdevice, modbusaddr) self.pingvin.serial.timeout = 0.2 self.pingvin.debug = debug