1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2025-11-21 02:52:06 +00:00

Add G610 support

This commit is contained in:
2016-11-18 21:48:50 +01:00
parent 64b1a59849
commit b23e48069b
2 changed files with 2 additions and 1 deletions

View File

@@ -394,6 +394,7 @@ bool Keyboard::parseKeyGroup(std::string key, KeyGroup &keyGroup) {
}
bool Keyboard::parseColor(std::string color, KeyColors &colors) {
if (color.length() == 2) color = color + "0000"; // For G610
if (color.length() != 6) return false;
colors.red = std::stoul("0x"+color.substr(0,2), nullptr, 16);
colors.green = std::stoul("0x"+color.substr(2,2), nullptr, 16);