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