CLS_VehicleStatus added unlocked signal
This commit is contained in:
4
CLS.c
4
CLS.c
@@ -42,6 +42,10 @@ void CLS_SendEventChangeTypePostion(CanDataId canid, CLS_Type_t newType, CLS_Pos
|
||||
CLS_BSP_CAN_AddMessageToSend(&cls_hartbeat_header, (uint8_t*)&EventChangeTypeData);
|
||||
}
|
||||
|
||||
const CLS_VehicleStatus_t * CLS_GetVehicleStatus(void) {
|
||||
return &cls_vehicle;
|
||||
}
|
||||
|
||||
void CLS_OnVehicleStatus(CanDataId canid, uint8_t* data, uint8_t len) {
|
||||
if(len == 8) {
|
||||
memcpy((uint8_t*)&cls_vehicle, data, 8);
|
||||
|
||||
Reference in New Issue
Block a user