串口收发正常
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user