]> git.webhop.me Git - lcd4linux.git/commitdiff
Fixed keypad widget in GLCD2USB
authorharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 6 May 2011 18:21:47 +0000 (18:21 +0000)
committerharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 6 May 2011 18:21:47 +0000 (18:21 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1144 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_GLCD2USB.c

index 25048007f63c55a4c24bc8aa3e9c6f19c9156f4c..10dc06bf219b1c7bcf849431b2f937f82440f1d4 100644 (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;