From e233ad903f5045311bff42ba867d342fddc89d13 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 11 Mar 2017 21:16:38 +0100 Subject: [PATCH] Remove commit for RM Keys --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 064fff9..fae9dca 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,7 +51,7 @@ int setMRKey(LedKeyboard &kbd, std::string arg2, bool commit = true) { if (! utils::parseUInt8(arg2, value)) return 1; if (! kbd.open()) return 1; if (! kbd.setMRKey(value)) return 1; - if (commit) if(! kbd.commit()) return 1; + //if (commit) if(! kbd.commit()) return 1; return 0; } @@ -60,7 +60,7 @@ int setMNKey(LedKeyboard &kbd, std::string arg2, bool commit = true) { if (! utils::parseUInt8(arg2, value)) return 1; if (! kbd.open()) return 1; if (! kbd.setMNKey(value)) return 1; - if (commit) if(! kbd.commit()) return 1; + //if (commit) if(! kbd.commit()) return 1; return 0; }