Author: jaguarondi
Date: 2008-08-20 18:49:45 +0200 (Wed, 20 Aug 2008)
New Revision: 1559

Modified:
   firmware/tuxcore/trunk/parser.c
Log:
* When connections and disconnections occur while the standalone can't process
  them (at startup) or too rapidly, both connection and disconnection flags
  were raised and not necessarily processed in the correct order.



Modified: firmware/tuxcore/trunk/parser.c
===================================================================
--- firmware/tuxcore/trunk/parser.c     2008-08-20 11:07:43 UTC (rev 1558)
+++ firmware/tuxcore/trunk/parser.c     2008-08-20 16:49:45 UTC (rev 1559)
@@ -58,9 +58,15 @@
             && (gStatus.sw & GSTATUS_POWERPLUGSW_MK))
             cond_flags.unplug = 1;
         if ((cmd[1] & STATUS_RF_MK) && !(gStatus.sw & GSTATUS_RF_MK))
+        {
             cond_flags.rf_conn = 1;
+            cond_flags.rf_disconn = 0;
+        }
         if (!(cmd[1] & STATUS_RF_MK) && (gStatus.sw & GSTATUS_RF_MK))
+        {
+            cond_flags.rf_conn = 0;
             cond_flags.rf_disconn = 1;
+        }
         gStatus.sw = cmd[1];
         gStatus.audio_play = cmd[2];
         gStatus.audio_status = cmd[3];


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to