修好了那个保留用户区域问题

This commit is contained in:
2025-10-21 09:10:00 +08:00
parent d1c3b2747a
commit 52b6449c4f
5 changed files with 115 additions and 223 deletions

View File

@@ -661,8 +661,8 @@ def patch_uart_interrupts(project_path, uart_instances):
flags=re.DOTALL
)
with open(it_path, "w", encoding="utf-8") as f:
f.write(code)
# 使用save_with_preserve保存文件以保留用户区域
CodeGenerator.save_with_preserve(it_path, code)
class bsp_uart(BspPeripheralBase):