diff options
Diffstat (limited to 'chip/g/flash.c')
-rw-r--r-- | chip/g/flash.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chip/g/flash.c b/chip/g/flash.c index 2f567d89b4..8a9622e64c 100644 --- a/chip/g/flash.c +++ b/chip/g/flash.c @@ -551,7 +551,12 @@ static int command_erase_flash_info(int argc, char **argv) } } #endif - info1->board_space.bid.flags = flags; + if (board_id_is_blank(&info1->board_space.bid)) { + ccprintf("BID is erased. Not modifying flags\n"); + } else { + ccprintf("setting BID flags to %x\n", flags); + info1->board_space.bid.flags = flags; + } if (check_board_id_vs_header(&info1->board_space.bid, get_current_image_header())) { ccprintf("Flags %x would lock out current image\n", |