From a0c1352c5ad6b18c42b927a9a31196912b964c3d Mon Sep 17 00:00:00 2001 From: Hazy Date: Sun, 20 Nov 2011 20:16:47 +0800 Subject: [PATCH] APM Planner - fix "Invalid Board Type" bug for board using mega32u2 --- Tools/ArdupilotMegaPlanner/GCSViews/Firmware.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/ArdupilotMegaPlanner/GCSViews/Firmware.cs b/Tools/ArdupilotMegaPlanner/GCSViews/Firmware.cs index 9eaeb83689..698fe0c59e 100644 --- a/Tools/ArdupilotMegaPlanner/GCSViews/Firmware.cs +++ b/Tools/ArdupilotMegaPlanner/GCSViews/Firmware.cs @@ -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;