autosarzs / Dev

Development AUTOSAR
Mozilla Public License 2.0
52 stars 19 forks source link

Fix used variable in Can_write #67

Open ahmedwahdan opened 4 years ago

ahmedwahdan commented 4 years ago

In Can_Write

 else if (Global_Config->CanHardwareObjectRef[hth_index].CanIdType == STANDARD)
{
     ui16ArbReg_1 &=~ CAN_IF1ARB2_MSGVAL ;
     ui16ArbReg_2 |= (  PduInfo->id  << 2 ) & CAN_IF1ARB2_ID_STAND ;
 }

The ui16ArbReg_1 in the first line should be ui16ArbReg_2.