summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-09 20:04:25 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-09 20:04:25 +0200
commit564b0715f1c08b08f48777934a28d1462b10c255 (patch)
tree77f6742ae8e31a049ee62b292b44b1c24441e8bf /src/main.c
parent6e710dcac95a402acb2f07db549a12f526b700a1 (diff)
download0xFFFF-564b0715f1c08b08f48777934a28d1462b10c255.tar.bz2
Remove old devices.c code
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main.c b/src/main.c
index f9fd60a..1f64220 100644
--- a/src/main.c
+++ b/src/main.c
@@ -330,7 +330,7 @@ int connect_via_usb()
{
static char pbc[]={'/','-','\\', '|'};
struct usb_device_descriptor udd;
- struct devices it_device;
+// struct devices it_device;
int c = 0;
// usb_set_debug(5);
@@ -346,11 +346,11 @@ int connect_via_usb()
while(!dev) {
usleep(0xc350); // 0.5s
- if(!usb_device_found(&udd, &it_device)) {
+/* if(!usb_device_found(&udd, &it_device)) {
printf("\rWaiting for device... %c", pbc[++c%4]);
fflush(stdout);
continue;
- }
+ }*/
/* open device */
if(!(dev = usb_open(device))) {
@@ -397,8 +397,8 @@ usb_detach_kernel_driver_np(dev, 2);
break;
}
- printf("found %s (%04x:%04x)\n", it_device.name,
- it_device.vendor_id, it_device.product_id);
+// printf("found %s (%04x:%04x)\n", it_device.name,
+// it_device.vendor_id, it_device.product_id);
/* go go go! */
while(get_status());
@@ -439,12 +439,12 @@ int main(int argc, char **argv)
// case 'F':
// fiasco_image = optarg;
// break;
- case 'd':
- sscanf(optarg, "%04hx:%04hx",
- &supported_devices[SUPPORTED_DEVICES-2].vendor_id,
- &supported_devices[SUPPORTED_DEVICES-2].product_id);
- supported_devices[SUPPORTED_DEVICES-2].name = strdup("user");
- break;
+// case 'd':
+// sscanf(optarg, "%04hx:%04hx",
+// &supported_devices[SUPPORTED_DEVICES-2].vendor_id,
+// &supported_devices[SUPPORTED_DEVICES-2].product_id);
+// supported_devices[SUPPORTED_DEVICES-2].name = strdup("user");
+// break;
case 'D':
root_device = atoi(optarg);
break;
@@ -463,9 +463,9 @@ int main(int argc, char **argv)
case 'r':
rd_mode = atoi(optarg);
break;
- case 'l':
- list_valid_devices();
- return 0;
+// case 'l':
+// list_valid_devices();
+// return 0;
case 'p':
add_piece(optarg);
break;