AP_Bootloader: fix stuck in bl on reboot from firmware with network and CAN bootlaoders

This commit is contained in:
bugobliterator 2024-07-22 10:47:40 +10:00 committed by Andrew Tridgell
parent 3ab3388752
commit e499c2d39f
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ bool can_check_update(void)
bool ret = false;
#if HAL_RAM_RESERVE_START >= 256
struct app_bootloader_comms *comms = (struct app_bootloader_comms *)HAL_RAM0_START;
if (comms->magic == APP_BOOTLOADER_COMMS_MAGIC) {
if (comms->magic == APP_BOOTLOADER_COMMS_MAGIC && comms->my_node_id != 0) {
can_set_node_id(comms->my_node_id);
fw_update.node_id = comms->server_node_id;
for (uint8_t i=0; i<FW_UPDATE_PIPELINE_LEN; i++) {