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

Clean code

This commit is contained in:
MatMoul 2017-03-11 21:35:39 +01:00
parent 5ca929f15e
commit 5bdc691ddd

View File

@ -181,11 +181,11 @@ int parseProfile(LedKeyboard &kbd, std::istream &stream) {
if (utils::parseColor(args[2], color))
keys.push_back({ key, color });
} else if (args[0] == "mr" && args.size() > 1) {
if (setMRKey(kbd, args[1], false) == 1) retval = 1;
if (setMRKey(kbd, args[1]) == 1) retval = 1;
} else if (args[0] == "mn" && args.size() > 1) {
if (setMNKey(kbd, args[1], false) == 1) retval = 1;
if (setMNKey(kbd, args[1]) == 1) retval = 1;
} else if (args[0] == "gkm" && args.size() > 1) {
if (setGKeysMode(kbd, args[1], false) == 1) retval = 1;
if (setGKeysMode(kbd, args[1]) == 1) retval = 1;
} else if (args[0] == "fx" && args.size() > 4) {
if (setFX(kbd, args[1], args[2], args[3], args[4]) == 1) retval = 1;
} else if (args[0] == "fx" && args.size() > 3) {