mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Merge tag '2.7.1' into pkg/debian
Release 2.7.1
This commit is contained in:
@@ -3,4 +3,4 @@
|
|||||||
__author__ = "Sven Sager <akira@revpimodio.org>"
|
__author__ = "Sven Sager <akira@revpimodio.org>"
|
||||||
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
__copyright__ = "Copyright (C) 2023 Sven Sager"
|
||||||
__license__ = "LGPLv2"
|
__license__ = "LGPLv2"
|
||||||
__version__ = "2.7.0"
|
__version__ = "2.7.1"
|
||||||
|
|||||||
@@ -115,13 +115,14 @@ class IOList(object):
|
|||||||
self.__modio._imgwriter.newdata.clear()
|
self.__modio._imgwriter.newdata.clear()
|
||||||
|
|
||||||
# Write outputs on devices without autorefresh
|
# Write outputs on devices without autorefresh
|
||||||
|
if not self.__modio._monitoring:
|
||||||
self.__modio.writeprocimg()
|
self.__modio.writeprocimg()
|
||||||
|
|
||||||
if self.__modio._imgwriter.is_alive():
|
if self.__modio._imgwriter.is_alive():
|
||||||
# Wait until imgwriter has written outputs
|
# Wait until imgwriter has written outputs
|
||||||
self.__modio._imgwriter.newdata.wait(2.5)
|
self.__modio._imgwriter.newdata.wait(2.5)
|
||||||
|
|
||||||
if self.__modio._context_manager:
|
if not self.__modio._context_manager:
|
||||||
# Do not reset if ModIO is in a context manager itself, it will handle that flag
|
# Do not reset if ModIO is in a context manager itself, it will handle that flag
|
||||||
self.__modio._looprunning = False
|
self.__modio._looprunning = False
|
||||||
|
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ class RevPiModIO(object):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||||
|
if not self._monitoring:
|
||||||
self.writeprocimg()
|
self.writeprocimg()
|
||||||
self.exit(full=True)
|
self.exit(full=True)
|
||||||
self._looprunning = False
|
self._looprunning = False
|
||||||
|
|||||||
Reference in New Issue
Block a user