[tuxdroid-svn] r1183 - firmware/tuxup/trunk
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-05-21 14:46:33
|
Author: Paul_R Date: 2008-05-21 16:46:36 +0200 (Wed, 21 May 2008) New Revision: 1183 Modified: firmware/tuxup/trunk/main.c Log: * Reset the dongle at the end of the update process. With this change, after the update, the dongle don't needs to be unplugged/plugged. The daemon restarts correctly, and all is working. * Minor change : replace a sleep(2) by sleep(1). Modified: firmware/tuxup/trunk/main.c =================================================================== --- firmware/tuxup/trunk/main.c 2008-05-21 14:07:04 UTC (rev 1182) +++ firmware/tuxup/trunk/main.c 2008-05-21 14:46:36 UTC (rev 1183) @@ -374,7 +374,7 @@ { if (verbose) fprintf(stdout, "Switched to bootloader mode.\n"); - sleep(2); + sleep(1); } else { @@ -633,7 +633,11 @@ } if (!pretend) + { + uint8_t send_data[5] = { 0x01, 0x01, 0x00, 0x00, 0xFE }; + ret = usb_send_commands(dev_h, send_data, 5); fux_disconnect(); + } /* In case of error of some sort, we return it. */ if (ret) |