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

Add G413 support

This commit is contained in:
2017-08-02 11:43:03 +02:00
parent 476bf8b5af
commit 0a7ee5b858
4 changed files with 7 additions and 2 deletions

View File

@@ -355,7 +355,8 @@ bool LedKeyboard::commit() {
byte_buffer_t data;
switch (currentDevice.model) {
case KeyboardModel::g213:
break; // Keyboard is non-transactional
case KeyboardModel::g413:
return true; // Keyboard is non-transactional
case KeyboardModel::g410:
case KeyboardModel::g610:
case KeyboardModel::g810:
@@ -727,7 +728,7 @@ bool LedKeyboard::setNativeEffect(NativeEffect effect, NativeEffectPart part, ui
case KeyboardModel::g213:
case KeyboardModel::g413:
protocolByte = 0x0c;
if (part == NativeEffectPart::logo) return false; //Does not have logo component
if (part == NativeEffectPart::logo) return true; //Does not have logo component
break;
case KeyboardModel::g410:
case KeyboardModel::g610: // Unconfirmed