|
From: <mla...@us...> - 2006-12-16 04:38:21
|
Revision: 200
http://svn.sourceforge.net/g15daemon/?rev=200&view=rev
Author: mlampard
Date: 2006-12-15 20:38:21 -0800 (Fri, 15 Dec 2006)
Log Message:
-----------
add libg15v1.2 debugging, and switch off backlight on exit
Modified Paths:
--------------
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2006-12-16 04:18:36 UTC (rev 199)
+++ trunk/g15daemon-wip/g15daemon/main.c 2006-12-16 04:38:21 UTC (rev 200)
@@ -301,6 +301,10 @@
g15daemon_log(LOG_ERR,"G15Daemon already running.. Exiting");
exit(0);
}
+
+ /* set libg15 debugging to our debug setting */
+ if(LIBG15_VERSION>=1200)
+ libg15Debug(g15daemon_debug);
/* init stuff here.. */
if((retval=initLibG15())==G15_ERROR_OPENING_USB_DEVICE){
@@ -333,6 +337,7 @@
setLCDContrast(1);
setLEDs(0);
+ setLCDBrightness(1);
/* initialise the linked list */
lcdlist = ll_lcdlist_init();
@@ -400,7 +405,8 @@
pthread_join(lcd_thread,NULL);
pthread_join(keyboard_thread,NULL);
-
+ /* switch off the lcd backlight */
+ setLCDBrightness(0);
#ifdef LIBG15_VERSION
#if LIBG15_VERSION >= 1100
exitLibG15();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|