Mercurial > hg > ucis.core
comparison USBLib/Communication/USBIO/USBIODevice.cs @ 37:2e3f57f326b3
Fixed some compiler warnings
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 21 Apr 2013 19:41:19 +0200 |
parents | 6fcedb1030bf |
children | a9c4fed19e99 |
comparison
equal
deleted
inserted
replaced
36:c4a5dbe62513 | 37:2e3f57f326b3 |
---|---|
179 Configuration = (Byte)value; | 179 Configuration = (Byte)value; |
180 return 0; | 180 return 0; |
181 default: | 181 default: |
182 throw new ArgumentException(String.Format("Invalid request: 0x{0:X8}", request)); | 182 throw new ArgumentException(String.Format("Invalid request: 0x{0:X8}", request)); |
183 } | 183 } |
184 break; | |
185 case UsbControlRequestType.TypeVendor: | 184 case UsbControlRequestType.TypeVendor: |
186 case UsbControlRequestType.TypeClass: | 185 case UsbControlRequestType.TypeClass: |
187 USBIO_CLASS_OR_VENDOR_REQUEST req = new USBIO_CLASS_OR_VENDOR_REQUEST() { | 186 USBIO_CLASS_OR_VENDOR_REQUEST req = new USBIO_CLASS_OR_VENDOR_REQUEST() { |
188 Flags = USBIO_SHORT_TRANSFER_OK, | 187 Flags = USBIO_SHORT_TRANSFER_OK, |
189 Type = (USBIO_REQUEST_TYPE)((int)(requestType & UsbControlRequestType.TypeMask) >> 5), | 188 Type = (USBIO_REQUEST_TYPE)((int)(requestType & UsbControlRequestType.TypeMask) >> 5), |