mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
Configure replaced ios from file before starting autorefresh
Very high load of cpu could cause cycle time warnings while apply replaced ios from file.
This commit is contained in:
@@ -130,7 +130,6 @@ class RevPiModIO(object):
|
||||
# Nur Konfigurieren, wenn nicht vererbt
|
||||
if type(self) == RevPiModIO:
|
||||
self._configure(self.get_jconfigrsc())
|
||||
self._configure_replace_io(self._get_cpreplaceio())
|
||||
|
||||
def __del__(self):
|
||||
"""Zerstoert alle Klassen um aufzuraeumen."""
|
||||
@@ -356,6 +355,9 @@ class RevPiModIO(object):
|
||||
# RS485 errors schreiben
|
||||
self.writeprocimg(self.core)
|
||||
|
||||
# Set replace IO before autostart to prevent cycle time exhausting
|
||||
self._configure_replace_io(self._get_cpreplaceio())
|
||||
|
||||
# Optional ins autorefresh aufnehmen
|
||||
if self._autorefresh:
|
||||
self.autorefresh_all()
|
||||
@@ -1348,7 +1350,6 @@ class RevPiModIOSelected(RevPiModIO):
|
||||
)
|
||||
|
||||
self._configure(self.get_jconfigrsc())
|
||||
self._configure_replace_io(self._get_cpreplaceio())
|
||||
|
||||
if len(self.device) == 0:
|
||||
if type(self) == RevPiModIODriver:
|
||||
|
||||
@@ -767,7 +767,6 @@ class RevPiNetIO(_RevPiModIO):
|
||||
# Nur Konfigurieren, wenn nicht vererbt
|
||||
if type(self) == RevPiNetIO:
|
||||
self._configure(self.get_jconfigrsc())
|
||||
self._configure_replace_io(self._get_cpreplaceio())
|
||||
|
||||
def _create_myfh(self):
|
||||
"""
|
||||
@@ -974,7 +973,6 @@ class RevPiNetIOSelected(RevPiNetIO):
|
||||
)
|
||||
|
||||
self._configure(self.get_jconfigrsc())
|
||||
self._configure_replace_io(self._get_cpreplaceio())
|
||||
|
||||
if len(self.device) == 0:
|
||||
if type(self) == RevPiNetIODriver:
|
||||
|
||||
Reference in New Issue
Block a user