mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
Bugfix on handle default values of type byte (frm="*s") in export_file
This commit is contained in:
@@ -418,7 +418,7 @@ class RevPiModIO(object):
|
|||||||
"defaultvalue '{1}' to boolean"
|
"defaultvalue '{1}' to boolean"
|
||||||
"".format(io, creplaceio[io]["defaultvalue"])
|
"".format(io, creplaceio[io]["defaultvalue"])
|
||||||
)
|
)
|
||||||
elif dict_replace["frm"].find("s") != 0:
|
elif dict_replace["frm"].find("s") >= 0:
|
||||||
buff = bytearray()
|
buff = bytearray()
|
||||||
try:
|
try:
|
||||||
dv_array = creplaceio[io].get("defaultvalue").split(" ")
|
dv_array = creplaceio[io].get("defaultvalue").split(" ")
|
||||||
|
|||||||
Reference in New Issue
Block a user