diff options
author | Be <be@mixxx.org> | 2020-07-26 11:47:14 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-07-26 11:47:14 -0500 |
commit | 087bd26483739beafcd75aa01ee22259d79441fb (patch) | |
tree | 0b548b961504f242c4a838876b0d23ead7802b00 | |
parent | ff2abf0ab1f76154e15744468dcfb4b97781c674 (diff) |
common-hid-packet-parser.js: fix parsing COs that share a name
Before, changes in the packet fields were only being identified
by the CO name. So if one packet had COs mapped that shared a name
but had different groups, for example
[Channel1], volume
[Channel2], volume
Only the last one would get processed. Now, the changes are
identified by both group and name.
-rw-r--r-- | res/controllers/common-hid-packet-parser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/controllers/common-hid-packet-parser.js b/res/controllers/common-hid-packet-parser.js index e905bfdf41..cba6dc347e 100644 --- a/res/controllers/common-hid-packet-parser.js +++ b/res/controllers/common-hid-packet-parser.js @@ -632,7 +632,7 @@ HIDPacket.prototype.parse = function(data) { field.delta = value - field.value } if (field.mindelta == undefined || change > field.mindelta) { - field_changes[field.name] = field + field_changes[field.id] = field field.value = value } } |