Show ASB Error by default

This commit is contained in:
Oskar Winkels 2023-08-04 22:56:27 +02:00
parent 75b8039e96
commit e6f77a5e29
Signed by: o.winkels
GPG Key ID: E7484A06E99DAEF1
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ int main(void)
// Ensure we start with SDC disabled
HAL_GPIO_WritePin(AS_close_SDC_GPIO_Port, AS_close_SDC_Pin, GPIO_PIN_RESET);
// Show ASB Error by default until we receive CAN
HAL_GPIO_WritePin(ASB_Error_GPIO_Port, ASB_Error_Pin, GPIO_PIN_SET);
if (HAL_CAN_Start(&hcan) != HAL_OK)
Error_Handler();