串口收发正常

This commit is contained in:
2025-01-09 14:48:56 +08:00
parent 76d20a87c7
commit 3b4773f900
16 changed files with 1984 additions and 1923 deletions
+2 -1
View File
@@ -142,6 +142,8 @@ int main(void)
MODBUS_SLAVE_ID = sys_id;
COMM_setSel(COMM_TYPE_485);
//设置电机
MOTOR_setDir(MOTOR_DIR_CW);
@@ -191,7 +193,6 @@ int main(void)
if(len)//这个长度不出意外的话是一包的长度
{
SERIAL_Write(&serial1,buff,len);
}
//SERIAL_Write(&serial1,"1234567890",10);