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

Remove commit for RM Keys

This commit is contained in:
MatMoul 2017-03-11 21:16:38 +01:00
parent 8931db5685
commit e233ad903f

View File

@ -51,7 +51,7 @@ int setMRKey(LedKeyboard &kbd, std::string arg2, bool commit = true) {
if (! utils::parseUInt8(arg2, value)) return 1; if (! utils::parseUInt8(arg2, value)) return 1;
if (! kbd.open()) return 1; if (! kbd.open()) return 1;
if (! kbd.setMRKey(value)) return 1; if (! kbd.setMRKey(value)) return 1;
if (commit) if(! kbd.commit()) return 1; //if (commit) if(! kbd.commit()) return 1;
return 0; return 0;
} }
@ -60,7 +60,7 @@ int setMNKey(LedKeyboard &kbd, std::string arg2, bool commit = true) {
if (! utils::parseUInt8(arg2, value)) return 1; if (! utils::parseUInt8(arg2, value)) return 1;
if (! kbd.open()) return 1; if (! kbd.open()) return 1;
if (! kbd.setMNKey(value)) return 1; if (! kbd.setMNKey(value)) return 1;
if (commit) if(! kbd.commit()) return 1; //if (commit) if(! kbd.commit()) return 1;
return 0; return 0;
} }