mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user