Skip to content

Commit

Permalink
Fix patch-set of non-string values
Browse files Browse the repository at this point in the history
Patch parameters can be c_float, c_int64 or strings
  • Loading branch information
falkTX committed Jan 4, 2022
1 parent ebe4876 commit b24bc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/host.py
Expand Up @@ -2583,7 +2583,7 @@ def patch_set(self, instance, uri, value, callback):
if parameter is not None:
parameter[0] = value

self.send_modified("patch_set %d %s \"%s\"" % (instance_id, uri, value.replace('"','\\"')),
self.send_modified("patch_set %d %s \"%s\"" % (instance_id, uri, str(value).replace('"','\\"')),
callback, datatype='boolean')
return parameter is not None

Expand Down

0 comments on commit b24bc12

Please sign in to comment.