1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 14:36:15 +02:00

mv the output cpu out of the open-xburst-device function

This commit is contained in:
Xiangfu Liu 2010-06-10 10:57:15 +08:00
parent 2b60170c9c
commit 0159afd121

View File

@ -87,6 +87,7 @@ int main(int argc, char** argv)
xburst_h = open_xburst_device();
if (xburst_h) {
printf("\nInfo - found XBurst boot device.\n");
if (send_request(xburst_h, "set_addr", STAGE1_ADDRESS)) {
close_xburst_device(xburst_h);
continue;
@ -227,7 +228,6 @@ struct usb_dev_handle* open_xburst_device()
goto xout_xburst_h;
}
printf("\nInfo - found XBurst CPU: JZ%x device\n", xburst_dev->descriptor.idProduct);
return xburst_h;
xout_xburst_h: