mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 09:16:11 +00:00
setGroupKeys keyValues count
This commit is contained in:
parent
f7970eb11c
commit
30855c4c75
@ -588,7 +588,7 @@ bool Keyboard::setAllKeys(KeyColors colors) {
|
||||
}
|
||||
|
||||
bool Keyboard::setGroupKeys(KeyGroup keyGroup, KeyColors colors) {
|
||||
KeyValue keyValues[119];
|
||||
KeyValue keyValues[54];
|
||||
int keyValuesCount = 0;
|
||||
switch (keyGroup) {
|
||||
case KeyGroup::logo:
|
||||
@ -651,7 +651,7 @@ bool Keyboard::setGroupKeys(KeyGroup keyGroup, KeyColors colors) {
|
||||
setKeys(keyValues, keyValuesCount);
|
||||
break;
|
||||
case KeyGroup::keys:
|
||||
for (int i = 63; i < 119; i++) {
|
||||
for (int i = 63; i < 117; i++) {
|
||||
getKeyAddress((Key)i, keyValues[i - 63].key);
|
||||
keyValues[i - 63].colors = colors;
|
||||
keyValuesCount++;
|
||||
|
Loading…
Reference in New Issue
Block a user