[tuxdroid-svn] r1161 - software_suite_v2/middleware/tuxdriver/trunk/src
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-05-16 08:04:42
|
Author: Paul_R Date: 2008-05-16 10:04:34 +0200 (Fri, 16 May 2008) New Revision: 1161 Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_firmware.c Log: * Changed the FUX status request command. The prev. command (0 6 0 0 0) has been replaced by (1 6 0 0 0). The reason is a simplification of the dongle. Normally, commands for Tux are sent directly on the SPI bus. Because of this command, I was obliged to parse all the commands. Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_firmware.c =================================================================== --- software_suite_v2/middleware/tuxdriver/trunk/src/tux_firmware.c 2008-05-16 06:53:22 UTC (rev 1160) +++ software_suite_v2/middleware/tuxdriver/trunk/src/tux_firmware.c 2008-05-16 08:04:34 UTC (rev 1161) @@ -343,8 +343,14 @@ cpu_id_to_name(cpu_id)); #endif - ret = tux_usb_send_to_tux(data); - + if (cpu_id == FUXUSB_CPU_NUM) + { + ret = tux_usb_send_to_dongle(data); + } + else + { + ret = tux_usb_send_to_tux(data); + } if (ret) { return 1; |