Bugfix on handle default values of type byte (frm="*s") in export_file

This commit is contained in:
2021-09-09 12:31:21 +02:00
parent 8607f25b37
commit 9c7c679abc
2 changed files with 2 additions and 2 deletions

View File

@@ -418,7 +418,7 @@ class RevPiModIO(object):
"defaultvalue '{1}' to boolean"
"".format(io, creplaceio[io]["defaultvalue"])
)
elif dict_replace["frm"].find("s") != 0:
elif dict_replace["frm"].find("s") >= 0:
buff = bytearray()
try:
dv_array = creplaceio[io].get("defaultvalue").split(" ")

View File

@@ -17,7 +17,7 @@ setup(
license="LGPLv3",
name="revpimodio2",
version="2.5.7b",
version="2.5.7d",
packages=["revpimodio2"],
python_requires="~=3.2",