APM Planner - fix "Invalid Board Type" bug for board using mega32u2

This commit is contained in:
Hazy 2011-11-20 20:16:47 +08:00
parent 81a4c87576
commit a0c1352c5a
1 changed files with 2 additions and 2 deletions

View File

@ -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;