Author: Paul_R
Date: 2008-09-16 12:50:23 +0200 (Tue, 16 Sep 2008)
New Revision: 1852

Modified:
   firmware/tuxup/trunk/bootloader.c
Log:
* BUG : All buffer must have a size of 64 bytes, and each time a read command
  is sent, it must return 64 bytes.


Modified: firmware/tuxup/trunk/bootloader.c
===================================================================
--- firmware/tuxup/trunk/bootloader.c   2008-09-16 10:42:40 UTC (rev 1851)
+++ firmware/tuxup/trunk/bootloader.c   2008-09-16 10:50:23 UTC (rev 1852)
@@ -843,11 +843,11 @@
 #ifndef WIN32
 static bool wait_status(unsigned char value, int timeout)
 {
-    unsigned char data_buffer[5];
+    unsigned char data_buffer[64];
     uint8_t sttime = time(NULL);
     uint8_t edtime = 0;
     
-    tux_hid_read(5, data_buffer);
+    tux_hid_read(64, data_buffer);
     while ((data_buffer[2] != value) || (data_buffer[0] != 0xF0))
     {
         edtime = time(NULL);
@@ -855,7 +855,7 @@
         {
             return 0;
         }
-        tux_hid_read(5, data_buffer);
+        tux_hid_read(64, data_buffer);
         usleep(5000);
     }
     return 1;


-------------------------------------------------------------------------
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