mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Erste Anpassungen für RevPiConnect
This commit is contained in:
@@ -25,7 +25,7 @@ __all__ = [
|
||||
__author__ = "Sven Sager <akira@revpimodio.org>"
|
||||
__name__ = "revpimodio2"
|
||||
__package__ = "revpimodio2"
|
||||
__version__ = "2.1.6"
|
||||
__version__ = "2.2.0"
|
||||
|
||||
# Global package values
|
||||
OFF = 0
|
||||
|
||||
@@ -236,7 +236,7 @@ class Device(object):
|
||||
for key in sorted(dict_io, key=lambda x: int(x)):
|
||||
|
||||
# Neuen IO anlegen
|
||||
if bool(dict_io[key][7]) or self._producttype == 95:
|
||||
if bool(dict_io[key][7]) or isinstance(self, Core):
|
||||
# Bei Bitwerten oder Core RevPiIOBase verwenden
|
||||
io_new = IOBase(
|
||||
self, dict_io[key], iotype, "little", False
|
||||
|
||||
@@ -37,7 +37,9 @@ class NetFH(Thread):
|
||||
"""
|
||||
|
||||
def __init__(self, address, timeout=500):
|
||||
"""Init NetFH-class."""
|
||||
"""Init NetFH-class.
|
||||
@param address IP Adresse des RevPi
|
||||
@param timeout Timeout in Millisekunden der Verbindung"""
|
||||
super().__init__()
|
||||
self.daemon = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user