1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00

Improve code layout

This commit is contained in:
MatMoul 2017-03-24 23:53:38 +01:00
parent 970c857d5b
commit a1d4c81471

View File

@ -310,7 +310,8 @@ bool LedKeyboard::setKeys(KeyValueArray keyValues) {
break; break;
case LedKeyboard::KeyboardModel::g410: case LedKeyboard::KeyboardModel::g410:
if (SortedKeys[4].size() <= 120) if (SortedKeys[4].size() <= 120)
if (keyValues[i].key < LedKeyboard::Key::num_lock || keyValues[i].key > LedKeyboard::Key::num_dot) if (keyValues[i].key < LedKeyboard::Key::num_lock ||
keyValues[i].key > LedKeyboard::Key::num_dot)
SortedKeys[4].push_back(keyValues[i]); SortedKeys[4].push_back(keyValues[i]);
break; break;
default: default: