Only close SDC if watchdog is OK

This commit is contained in:
Jasper Blanckenburg 2023-08-03 16:40:42 +02:00
parent 34611dac20
commit 1e4e5a91aa
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) {
}
pHeartbeat = rxData.signals.heartbeat;
bool close_sdc = setup_done && rxData.signals.as_close_sdc;
bool close_sdc = setup_done && rxData.signals.as_close_sdc && WD_OK;
#endif