Mercurial > hg > ucis.core
comparison USBLib/Windows/USB/UsbDevice.cs @ 61:2b24666cd759
Fixed errors in Windows USB enumeration and LibUsbDotNet configuration descriptor code
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 13 Oct 2013 00:48:28 +0200 |
parents | 3424fa5a12c9 |
children | edc41c861d96 |
comparison
equal
deleted
inserted
replaced
60:3424fa5a12c9 | 61:2b24666cd759 |
---|---|
140 isHostController = true; | 140 isHostController = true; |
141 return controller.RootHub; | 141 return controller.RootHub; |
142 } | 142 } |
143 isHostController = false; | 143 isHostController = false; |
144 DeviceNode parent = node.GetParent(); | 144 DeviceNode parent = node.GetParent(); |
145 if (parent == null) return null; | |
145 Boolean isHostControllerA; | 146 Boolean isHostControllerA; |
146 UsbDevice usbdev = GetUsbDevice(parent, out isHostControllerA); | 147 UsbDevice usbdev = GetUsbDevice(parent, out isHostControllerA); |
147 if (isHostControllerA) return usbdev; | 148 if (isHostControllerA) return usbdev; |
148 UsbHub usbhub = usbdev as UsbHub; | 149 UsbHub usbhub = usbdev as UsbHub; |
149 if (usbhub == null) { | 150 if (usbhub == null) { |