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

Merge pull request #204 from cornernote/patch-1

fix error when compiling - missing enums in switch
This commit is contained in:
MatMoul 2020-04-25 22:29:44 +02:00 committed by GitHub
commit 10b01b6206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,9 @@ int setFX(LedKeyboard &kbd, LedKeyboard::NativeEffectStorage storage,
if (! utils::parseNativeEffectPart(arg3, effectPart)) return 1; if (! utils::parseNativeEffectPart(arg3, effectPart)) return 1;
switch (effect) { switch (effect) {
case LedKeyboard::NativeEffect::off:
case LedKeyboard::NativeEffect::ripple:
break;
case LedKeyboard::NativeEffect::color: case LedKeyboard::NativeEffect::color:
if (! utils::parseColor(arg4, color)) return 1; if (! utils::parseColor(arg4, color)) return 1;
break; break;