We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d21a46f commit 9f30d3cCopy full SHA for 9f30d3c
openrgb/utils.py
@@ -497,7 +497,7 @@ def pack(self, version: int = 0) -> bytearray:
497
data = bytearray()
498
data += struct.pack("16sI", b'OPENRGB_PROFILE\x00', 1)
499
for dev in self.controllers:
500
- data += dev.data.pack()
+ data += dev.data.pack(0)
501
return data
502
503
@classmethod
@@ -514,7 +514,7 @@ def unpack(cls, profile: BinaryIO) -> Profile:
514
break
515
size = struct.unpack("I", d)[0]
516
profile.seek(profile.tell() - struct.calcsize("I"))
517
- new_data = ControllerData.unpack(profile.read(size))
+ new_data = ControllerData.unpack(profile.read(size), 0)
518
controllers.append(new_data)
519
return cls(controllers)
520
0 commit comments