APM Planner

fix detection of CAPM board
This commit is contained in:
Hazy 2012-03-13 20:26:45 +08:00
parent adcc20e4d3
commit 731a118467
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ namespace ArdupilotMega
{
serialPort.Close();
//HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0010\640333439373519060F0\Device Parameters
if (!MainV2.MONO || Thread.CurrentThread.CurrentUICulture.Name != "zh-Hans")
if (!MainV2.MONO && !Thread.CurrentThread.CurrentUICulture.IsChildOf(CultureInfoEx.GetCultureInfo("zh-Hans")))
{
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_USBControllerDevice");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);