comparison USBLib/Communication/WindowsUsbDeviceRegistry.cs @ 64:99ed461509fe

Fixed data type for USB vendor and product IDs
author Ivo Smits <Ivo@UCIS.nl>
date Sun, 13 Oct 2013 20:03:05 +0200
parents df5534af12e9
children
comparison
equal deleted inserted replaced
63:309c705d7460 64:99ed461509fe
68 mPid = (UInt16)pid; 68 mPid = (UInt16)pid;
69 mRevision = (UInt16)rev; 69 mRevision = (UInt16)rev;
70 mInterfaceID = (Byte)mid; 70 mInterfaceID = (Byte)mid;
71 mIsDeviceIDParsed = true; 71 mIsDeviceIDParsed = true;
72 } 72 }
73 public int Vid { 73 public UInt16 Vid {
74 get { 74 get {
75 parseDeviceID(); 75 parseDeviceID();
76 return mVid; 76 return mVid;
77 } 77 }
78 } 78 }
79 public int Pid { 79 public UInt16 Pid {
80 get { 80 get {
81 parseDeviceID(); 81 parseDeviceID();
82 return mPid; 82 return mPid;
83 } 83 }
84 } 84 }