Skip to content

Commit

Permalink
APFirmware: match primary and secondary on the same port
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Mar 6, 2024
1 parent caa0436 commit 1fb0fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExtLibs/ArduPilot/APFirmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public static long[] GetBoardID(DeviceInfo device, bool boardidcheck = true)
// match the board description
var ans = Manifest.Firmware.Where(a => (
a.Platform?.ToLower() == device.board?.ToLower() ||
a.Platform?.ToLower().Replace("primary", "secondary") == device.board?.ToLower() ||
a.BootloaderStr.Any(b => b?.ToLower() == device.board?.ToLower())));

if (boardidcheck)
Expand Down

0 comments on commit 1fb0fe2

Please sign in to comment.