Merge pull request #11 from Darael/bugfix/10-extra-region

Enable extra region when it exists, instead of when it doesn't
This commit is contained in:
Christian Loritz 2019-02-07 10:51:15 +01:00 committed by GitHub
commit 1b2d7ecfbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ static int __init tuxdeo_keyboard_init(void)
TUXEDO_ERROR("Sysfs attribute creation failed for color right\n"); TUXEDO_ERROR("Sysfs attribute creation failed for color right\n");
} }
if(set_color(REGION_EXTRA, KB_COLOR_DEFAULT) == 0) if(set_color(REGION_EXTRA, KB_COLOR_DEFAULT) != 0)
{ {
TUXEDO_DEBUG("Keyboard does not support EXTRA Color"); TUXEDO_DEBUG("Keyboard does not support EXTRA Color");
keyboard.has_extra = 0; keyboard.has_extra = 0;