fix:群发模式下无法升级

群发模式下错误的修改了串口1的波特率,未修改到串口2波特率,导致群发升级失败。
This commit is contained in:
yeyangwen
2026-02-27 18:04:21 +08:00
parent 2815979c8a
commit edd325479e
19 changed files with 154 additions and 406 deletions

View File

@@ -411,7 +411,7 @@ U8_T Boot_Comm_UpgradeProcess(U8_T *data,U16_T len)
/*设置波特率支持*/
if(group_flag == 0x01){
//群发 - 直接设置波特率
UARTx_ChangeBaud(UART_1,temp_data);
UARTx_ChangeBaud(UART_2,temp_data);
}else{
//单发 - 等待本包数据回复完成后设置波特率
BUS485_SetBaud(temp_data);