sergeynik
Member
- Likes
- 17
- Location
- Kazakhstan
0.033v in module 1
in my DDCP module add button 2 from dashboard
if(msg_buf2.StdId==CAN_ID_DISPLAY_KEYS) {
if(msg_buf2.Data[0]==2) send_clear_bcuerr();
}
send_clear_bcuerr()
{
TxMessage.StdId = clear_faults_can_id; //
TxMessage.RTR = CAN_RTR_DATA; //
TxMessage.IDE = CAN_ID_STD; //
TxMessage.DLC = 4; //
TxMessage.Data[0] = 0xff; //
TxMessage.Data[1] = 0xff; //
TxMessage.Data[2] = 0xff; //
TxMessage.Data[3] = 0xff; //
CAN_Transmit(CAN2, &TxMessage);
}
in my DDCP module add button 2 from dashboard
if(msg_buf2.StdId==CAN_ID_DISPLAY_KEYS) {
if(msg_buf2.Data[0]==2) send_clear_bcuerr();
}
send_clear_bcuerr()
{
TxMessage.StdId = clear_faults_can_id; //
TxMessage.RTR = CAN_RTR_DATA; //
TxMessage.IDE = CAN_ID_STD; //
TxMessage.DLC = 4; //
TxMessage.Data[0] = 0xff; //
TxMessage.Data[1] = 0xff; //
TxMessage.Data[2] = 0xff; //
TxMessage.Data[3] = 0xff; //
CAN_Transmit(CAN2, &TxMessage);
}