Subversion Repositories group.electronics

Rev

Rev 89 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 89 Rev 91
Line 117... Line 117...
117
	}
117
	}
118
 
118
 
119
	if(strcmp(argv[1], "on") == 0) {
119
	if(strcmp(argv[1], "on") == 0) {
120
		nBytes = usb_control_msg(handle, 
120
		nBytes = usb_control_msg(handle, 
121
            USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, 
121
            USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, 
122
			USB_LED_ON, 0, 0, (char *)buffer, sizeof(buffer), 5000);
122
			USB_LED_ON, atoi(argv[2]), 0, (char *)buffer, sizeof(buffer), 5000);
123
	} else if(strcmp(argv[1], "off") == 0) {
123
	} else if(strcmp(argv[1], "off") == 0) {
124
		nBytes = usb_control_msg(handle, 
124
		nBytes = usb_control_msg(handle, 
125
            USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, 
125
            USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, 
126
			USB_LED_OFF, 0, 0, (char *)buffer, sizeof(buffer), 5000);
126
			USB_LED_OFF, 0, 0, (char *)buffer, sizeof(buffer), 5000);
127
	}
127
	}