Fixed keypad widget in GLCD2USB

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1144 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
harbaum
2011-05-06 18:21:47 +00:00
parent f17287509f
commit 7fc8ef21bd
+7
View File
@@ -1,3 +1,4 @@
/* $Id$
* $URL$
*
@@ -596,6 +597,10 @@ int drv_GLCD2USB_init(const char *section, const __attribute__ ((unused))
if ((ret = drv_generic_graphic_init(section, Name)) != 0)
return ret;
/* initialize generic key pad driver */
if ((ret = drv_generic_keypad_init(section, Name)) != 0)
return ret;
/* register plugins */
AddFunction("LCD::brightness", 1, plugin_brightness);
@@ -612,6 +617,8 @@ int drv_GLCD2USB_quit(const __attribute__ ((unused))
info("%s: shutting down.", Name);
drv_generic_graphic_quit();
drv_generic_keypad_quit();
/* release access to display */
buffer.bytes[0] = GLCD2USB_RID_SET_ALLOC;