mirror of
https://opendev.org/x/pyghmi
synced 2025-08-21 10:30:19 +00:00
Handle unicode DCMI data incoming
If unicode string data is submitted, pass it along as utf-8 encoded bytes. Change-Id: I00adc7aff4dcf06061a9fad69ed33cd784e7fe1b
This commit is contained in:
@@ -1012,7 +1012,7 @@ class Command(object):
|
||||
offset = 0
|
||||
for chunk in chunks:
|
||||
cmddata = bytearray((0xdc, offset, len(chunk)))
|
||||
cmddata += chunk
|
||||
cmddata += bytearray(chunk, 'utf-8')
|
||||
self.xraw_command(netfn=0x2c, command=command, data=cmddata)
|
||||
|
||||
def set_channel_access(self, channel=None,
|
||||
|
Reference in New Issue
Block a user