Repository navigation
Commit f2eb04b
authored
* Fix zone parsing desync on OpenRGB 1.0rc3+ servers
Servers with SDK protocol >= 5 serialize a matrix map block for every
zone, not just MATRIX zones. ZoneData.unpack only consumed it when
zone_type == MATRIX, leaving the parser 8 bytes behind on LINEAR/SINGLE
zones and producing garbage values (e.g. "256 is not a valid ZoneType")
during device discovery.
Consume the matrix block whenever matrix_zone_size > 0, which is backward
compatible since the size is 0 when no map exists. Also widen ZoneType to
the current server values (LINEAR_LOOP, MATRIX_LOOP_X, MATRIX_LOOP_Y,
SEGMENTED).
1 parent dbbe583 commit f2eb04b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
468 | 472 | | |
469 | 473 | | |
470 | 474 | | |
471 | | - | |
| 475 | + | |
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
| |||
0 commit comments