Skip to content

Commit

Permalink
feat: debug link BL should respect META_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnerdhair committed Apr 19, 2022
1 parent ee6b75d commit a670f74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ static bool isFirmwareUpdateMode(void) {
// Firmware isn't there?
if (!magic_ok()) return true;

// When debugging over jtag, these are triggering, sending us into update
// mode.
#ifndef DEBUG_ON
// When debugging over jtag, these are triggering, sending us into update
// mode.
int signed_firmware = signatures_ok();

// Check if the firmware wants us to boot into firmware update mode.
Expand All @@ -193,7 +192,6 @@ static bool isFirmwareUpdateMode(void) {

// If the firmware was signed with old signing keys, we also need to update.
if (signed_firmware == KEY_EXPIRED) return true;
#endif

// Attempt to boot.
return false;
Expand Down

0 comments on commit a670f74

Please sign in to comment.