Skip to content

Commit

Permalink
Firmware: keep looking for a board if the provided apj board_id is no…
Browse files Browse the repository at this point in the history
…t a match
  • Loading branch information
meee1 committed Jun 13, 2024
1 parent b0ad3dc commit 1f65fe3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Utilities/Firmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,14 @@ public bool UploadPX4(string filename, BoardDetect.boards board)
up.board_type,
up.board_rev, up.bl_rev, up.fw_maxsize, port, up.chip, up.chip_desc, up.extf_maxsize);
// if the apj is not for the detected board type - keep looking
if (up.board_type != fw.board_id)
{
log.InfoFormat("Board type mismatch - keep looking, detected {0}, fw file {1}", up.board_type, fw.board_id);
up.close();
return;
}
up.ProgressEvent += new Uploader.ProgressEventHandler(up_ProgressEvent);
up.LogEvent += new Uploader.LogEventHandler(up_LogEvent);
up.identify();
Expand Down

0 comments on commit 1f65fe3

Please sign in to comment.