mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 18:03:34 +08:00
tools: px_uploader.py: change RuntimeErorr to printf warning for fw_maxsize greater than fw_maxsize (#24321)
This commit is contained in:
@@ -708,7 +708,7 @@ class uploader:
|
|||||||
# https://github.com/PX4/Firmware/blob/master/src/drivers/boards/common/stm32/board_mcu_version.c#L125-L144
|
# https://github.com/PX4/Firmware/blob/master/src/drivers/boards/common/stm32/board_mcu_version.c#L125-L144
|
||||||
|
|
||||||
if self.fw_maxsize > fw.property('image_maxsize') and not force:
|
if self.fw_maxsize > fw.property('image_maxsize') and not force:
|
||||||
raise RuntimeError(f"Board can accept larger flash images ({self.fw_maxsize} bytes) than board config ({fw.property('image_maxsize')} bytes). Please use the correct board configuration to avoid lacking critical functionality.")
|
print(f"WARNING: Board can accept larger flash images ({self.fw_maxsize} bytes) than board config ({fw.property('image_maxsize')} bytes)")
|
||||||
else:
|
else:
|
||||||
# If we're still on bootloader v4 on a Pixhawk, we don't know if we
|
# If we're still on bootloader v4 on a Pixhawk, we don't know if we
|
||||||
# have the silicon errata and therefore need to flash px4_fmu-v2
|
# have the silicon errata and therefore need to flash px4_fmu-v2
|
||||||
|
|||||||
Reference in New Issue
Block a user