[tuxdroid-svn] r149 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-03-13 14:08:41
|
Author: jaguarondi Date: 2007-03-13 15:08:28 +0100 (Tue, 13 Mar 2007) New Revision: 149 Modified: daemon/trunk/libs/USBDaemon_usb_enum.c Log: - ADD: added an ERROR if the old dongle firmware is detected, the program points to the upgrade guide and exits Modified: daemon/trunk/libs/USBDaemon_usb_enum.c =================================================================== --- daemon/trunk/libs/USBDaemon_usb_enum.c 2007-03-13 14:07:04 UTC (rev 148) +++ daemon/trunk/libs/USBDaemon_usb_enum.c 2007-03-13 14:08:28 UTC (rev 149) @@ -110,6 +110,17 @@ sleep(1); }while(!tux_device); + // Old firmware should be discarded here + if (tux_device->descriptor.bcdDevice < 0x100) + { + printf("\nERROR: Your dongle firmware is too old.\n"\ + "This version is not compatible with this daemon, please update\n"\ + "the firmware to version 1.00 or better.\n"\ + "Check http://www.tuxisalive.com/documentation/how-to/updating-the-firmware\n"\ + "for details.\n"); + exit(1); + } + // Get Device handle tux_handle = usb_open_TuxDroid(tux_device); if(tux_handle == NULL) |