r4040 - trunk/src/target/OM-2007.2/daemons/neod/src
mickey at sita.openmoko.org
mickey at sita.openmoko.org
Sun Feb 10 16:09:16 CET 2008
Author: mickey
Date: 2008-02-10 16:09:16 +0100 (Sun, 10 Feb 2008)
New Revision: 4040
Modified:
trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
Log:
neod: revert to using g_timeout_add for the button timeout. add_seconds may add too much latency
Modified: trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c 2008-02-10 14:47:50 UTC (rev 4039)
+++ trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c 2008-02-10 15:09:16 UTC (rev 4040)
@@ -328,7 +328,7 @@
if ( event.value == 1 ) /* pressed */
{
if ( moko_debug ) g_debug( "triggering aux timer" );
- aux_timer = g_timeout_add_seconds( 1, (GSourceFunc) neod_buttonactions_aux_timeout, (gpointer)1 );
+ aux_timer = g_timeout_add( 1000, (GSourceFunc) neod_buttonactions_aux_timeout, (gpointer)1 );
}
else if ( event.value == 0 ) /* released */
{
@@ -347,7 +347,7 @@
if ( event.value == 1 ) /* pressed */
{
if ( moko_debug ) g_debug( "triggering power timer" );
- power_timer = g_timeout_add_seconds( 1, (GSourceFunc) neod_buttonactions_power_timeout, (gpointer)1 );
+ power_timer = g_timeout_add( 1000, (GSourceFunc) neod_buttonactions_power_timeout, (gpointer)1 );
}
else if ( event.value == 0 ) /* released */
{
More information about the commitlog
mailing list