From af6f24aac6a81463af1e235e4312ac36b14a9c4d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 25 Feb 2017 01:11:01 +0100 Subject: [PATCH] make more readable --- src/classes/Keyboard.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index a0470bc..d8d47d7 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -270,7 +270,8 @@ bool LedKeyboard::setKeys(KeyValueArray keyValues) { case LedKeyboard::KeyboardModel::g410: case LedKeyboard::KeyboardModel::g610: case LedKeyboard::KeyboardModel::g810: - if (SortedKeys[0].size() <= 1 && keyValues[i].key == LedKeyboard::Key::logo) SortedKeys[0].push_back(keyValues[i]); + if (SortedKeys[0].size() <= 1 && keyValues[i].key == LedKeyboard::Key::logo) + SortedKeys[0].push_back(keyValues[i]); break; case LedKeyboard::KeyboardModel::g910: if (SortedKeys[0].size() <= 2) SortedKeys[0].push_back(keyValues[i]); @@ -310,7 +311,8 @@ bool LedKeyboard::setKeys(KeyValueArray keyValues) { break; case LedKeyboard::KeyboardModel::g410: // need filter num pad for G410 - // if (SortedKeys[4].size() <= 120 && keyValues[i].key > 0x07 && keyValues[i].key < 0x23) SortedKeys[4].push_back(keyValues[i]); + // if (SortedKeys[4].size() <= 120 && keyValues[i].key > 0x07 && keyValues[i].key < 0x23) + // SortedKeys[4].push_back(keyValues[i]); if (SortedKeys[4].size() <= 120) SortedKeys[4].push_back(keyValues[i]); break; default: