Skip to content

Commit

Permalink
APFirmware: for any given usb board id, check also primary and secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jul 8, 2024
1 parent 3b2db21 commit 7f7b82e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ExtLibs/ArduPilot/APFirmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ public static long[] GetBoardID(DeviceInfo device, bool boardidcheck = true)
a.Platform?.ToLower().Replace("primary", "secondary") == device.board?.ToLower() ||
a.Platform?.ToLower() == device.board?.Replace("-BL", "secondary").ToLower() ||
a.Platform?.ToLower() == device.board?.Replace("-BL", "primary").ToLower() ||
a.Platform?.ToLower() == device.board?.ToLower() + "primary" ||
a.Platform?.ToLower() == device.board?.ToLower() + "secondary" ||
a.BootloaderStr.Any(b => b?.ToLower() == device.board?.ToLower())));

if (boardidcheck)
Expand Down

0 comments on commit 7f7b82e

Please sign in to comment.