Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openrgb/orgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def _update(self, data: utils.ControllerData):
self._colors = self.colors[:]
self.active_mode = data.active_mode
self.data = data
self.state_hash = hash(str(data))

def _set_device_color(self, color: utils.RGBColor, fast: bool = False):
'''
Expand Down Expand Up @@ -410,6 +411,7 @@ def _callback(self, device: int, type: int, data: Any):
self.devices[device] = Device(data, device, self.comms)
else:
self.devices[device]._update(data) # type: ignore
self.state_hash = hash("".join(str(dev.state_hash) for dev in self.devices if dev))
except IndexError:
self.comms.requestDeviceNum()
elif type == utils.PacketType.DEVICE_LIST_UPDATED:
Expand Down