mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
Set values in process image AND buffer with shared_procimg=True
This commit is contained in:
@@ -22,7 +22,7 @@ __author__ = "Sven Sager <akira@revpimodio.org>"
|
||||
__copyright__ = "Copyright (C) 2020 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__name__ = "revpimodio2"
|
||||
__version__ = "2.5.3b"
|
||||
__version__ = "2.5.3c"
|
||||
|
||||
# Global package values
|
||||
OFF = 0
|
||||
|
||||
@@ -630,6 +630,7 @@ class IOBase(object):
|
||||
)
|
||||
except Exception as e:
|
||||
self._parentdevice._modio._gotioerror("ioset", e)
|
||||
return
|
||||
|
||||
elif hasattr(self._parentdevice._modio._myfh, "ioctl"):
|
||||
# IOCTL über Netzwerk
|
||||
@@ -643,6 +644,7 @@ class IOBase(object):
|
||||
except Exception as e:
|
||||
self._parentdevice._modio._gotioerror(
|
||||
"net_ioset", e)
|
||||
return
|
||||
|
||||
else:
|
||||
# IOCTL in Datei simulieren
|
||||
@@ -655,9 +657,7 @@ class IOBase(object):
|
||||
)
|
||||
except Exception as e:
|
||||
self._parentdevice._modio._gotioerror("file_ioset", e)
|
||||
|
||||
else:
|
||||
# Gepuffertes Schreiben der Outputs
|
||||
return
|
||||
|
||||
# Für Bitoperationen sperren
|
||||
self._parentdevice._filelock.acquire()
|
||||
@@ -705,7 +705,8 @@ class IOBase(object):
|
||||
self._parentdevice._modio._myfh.flush()
|
||||
except IOError as e:
|
||||
self._parentdevice._modio._gotioerror("ioset", e)
|
||||
else:
|
||||
return
|
||||
|
||||
self._parentdevice._ba_devdata[self._slc_address] = value
|
||||
|
||||
def unreg_event(self, func=None, edge=None) -> None:
|
||||
|
||||
Reference in New Issue
Block a user