From 5bdc691dddbbc00c82969924846f187d1bb23ad8 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 11 Mar 2017 21:35:39 +0100 Subject: [PATCH] Clean code --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a157912..bd3dcae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) {