mirror of https://github.com/ArduPilot/ardupilot
APM Planner - fix "Invalid Board Type" bug for board using mega32u2
This commit is contained in:
parent
81a4c87576
commit
a0c1352c5a
|
@ -510,7 +510,7 @@ namespace ArdupilotMega.GCSViews
|
|||
Console.WriteLine("Detected a " + board);
|
||||
|
||||
string baseurl = "";
|
||||
if (board == "2560")
|
||||
if (board == "2560" || board == "2560-2")
|
||||
{
|
||||
baseurl = temp.url2560.ToString();
|
||||
}
|
||||
|
@ -605,7 +605,7 @@ namespace ArdupilotMega.GCSViews
|
|||
//port = new ArduinoSTK();
|
||||
port.BaudRate = 57600;
|
||||
}
|
||||
else if (board == "2560")
|
||||
else if (board == "2560" || board == "2560-2")
|
||||
{
|
||||
port = new ArduinoSTKv2();
|
||||
port.BaudRate = 115200;
|
||||
|
|
Loading…
Reference in New Issue