Only close SDC if watchdog is OK
This commit is contained in:
parent
34611dac20
commit
1e4e5a91aa
|
@ -520,7 +520,7 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) {
|
||||||
}
|
}
|
||||||
pHeartbeat = rxData.signals.heartbeat;
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue