Hardware/Heatmaster/HeatmasterGroup.cs
changeset 173 fb96c0ca3c2d
parent 172 c9d8de472546
child 175 e4ee19d583bd
     1.1 --- a/Hardware/Heatmaster/HeatmasterGroup.cs	Mon Aug 23 20:00:06 2010 +0000
     1.2 +++ b/Hardware/Heatmaster/HeatmasterGroup.cs	Tue Aug 24 19:06:49 2010 +0000
     1.3 @@ -71,7 +71,10 @@
     1.4        List<string> result = new List<string>();
     1.5        try {
     1.6          RegistryKey key = Registry.LocalMachine.OpenSubKey(
     1.7 -          @"SYSTEM\CurrentControlSet\Enum\USB\Vid_10c4&Pid_ea60&Mi_00");
     1.8 +          @"SYSTEM\CurrentControlSet\Enum\USB\VID_10C4&PID_EA60");
     1.9 +        if (key == null)
    1.10 +          key = Registry.LocalMachine.OpenSubKey(
    1.11 +            @"SYSTEM\CurrentControlSet\Enum\USB\VID_10C4&PID_EA60&MI_00");           
    1.12          if (key != null) {
    1.13            foreach (string subKeyName in key.GetSubKeyNames()) {
    1.14              RegistryKey subKey =