mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
APM Planner
fix detection of CAPM board
This commit is contained in:
parent
adcc20e4d3
commit
731a118467
@ -158,7 +158,7 @@ namespace ArdupilotMega
|
|||||||
{
|
{
|
||||||
serialPort.Close();
|
serialPort.Close();
|
||||||
//HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0010\640333439373519060F0\Device Parameters
|
//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");
|
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_USBControllerDevice");
|
||||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
|
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
|
||||||
|
Loading…
Reference in New Issue
Block a user