Removed INT for CAN1

This commit is contained in:
@CarlWachter
2024-02-28 13:23:55 +01:00
parent 6d4f8487a0
commit dfc8f3e7ed
3 changed files with 4 additions and 17 deletions

View File

@@ -207,7 +207,7 @@ void SystemClock_Config(void)
}
/* USER CODE BEGIN 4 */
/*
void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan1)
{
@@ -216,20 +216,7 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan1)
HAL_CAN_GetRxMessage(hcan1, CAN_RX_FIFO0, &rxHeader, canRX);
/*uint8_t type_id, sensor_ID, value, include;
unpackValues(canRX[0], &type_id, &sensor_ID, &value, &include);
if (type_id == 0 && sensor_ID == 1){
if (value == 0){
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_RESET);
}else{
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_SET);
}
}*/
}
}*/
/* USER CODE END 4 */