diff --git a/project/Spoolend/Spoolend.c b/project/Spoolend/Spoolend.c index a90e303..e01f232 100644 --- a/project/Spoolend/Spoolend.c +++ b/project/Spoolend/Spoolend.c @@ -171,10 +171,10 @@ void HAL_FDCAN_RxFifo0Callback(FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo0ITs) void SpoolendInit(void) { TUartUserData *ptUartUserData = UART_userdata_init(1, 115200, 512); - g_ptRS485_1 = rd_ComCreate(check_RS485_2, decode_RS485_2, RS485_2_Send, ptUartUserData->m_buf_size, ptUartUserData); + g_ptRS485_1 = rd_ComCreate(NULL, NULL, RS485_1_Send, ptUartUserData->m_buf_size, ptUartUserData); // 仿照My_print,check和decode传NULL UART_IT_init(g_ptRS485_1); TUartUserData *ptUartUserData1 = UART_userdata_init(3, 115200, 512); - g_ptRS485_2 = rd_ComCreate(check_RS485_1, decode_RS485_1, RS485_1_Send, ptUartUserData1->m_buf_size, ptUartUserData1); + g_ptRS485_2 = rd_ComCreate(NULL, NULL, RS485_2_Send, ptUartUserData1->m_buf_size, ptUartUserData1); // 仿照My_print,check和decode传NULL UART_IT_init(g_ptRS485_2); TCANUserData *ptCANUserData = CAN_userdata_init(&hfdcan1, 8, 0); g_ptFDCAN1 = rd_ComCreate(check_Spoolend, decode_Spoolend, FDCAN1_Send, CONFIG_UART_BUFFER_SIZE, ptCANUserData);