Fix VIN string
This commit is contained in:
parent
011cc31d50
commit
105cf60e3c
|
@ -223,23 +223,6 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
|
|||
break;
|
||||
}
|
||||
case 0x4060: { //Vehicle identificaftion number
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(0));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(1));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(2));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(3));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(4));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(5));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(6));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(7));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(8));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(9));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(10));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(11));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(12));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(13));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(14));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(15));
|
||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %d", CAN_BYTE(16));
|
||||
zoe_vin[0] = CAN_BYTE(0);
|
||||
zoe_vin[1] = CAN_BYTE(1);
|
||||
zoe_vin[2] = CAN_BYTE(2);
|
||||
|
@ -257,6 +240,7 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
|
|||
zoe_vin[14] = CAN_BYTE(14);
|
||||
zoe_vin[15] = CAN_BYTE(15);
|
||||
zoe_vin[16] = CAN_BYTE(16);
|
||||
zoe_vin[17] = 0;
|
||||
StandardMetrics.ms_v_vin->SetValue((string) zoe_vin);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ class OvmsVehicleRenaultZoePh2 : public OvmsVehicle {
|
|||
bool m_UseCarTrip = false;
|
||||
bool m_UseBMScalculation = false;
|
||||
bool m_UseBMSsoc = false;
|
||||
char zoe_vin[17] = "";
|
||||
char zoe_vin[18] = "";
|
||||
void IncomingINV(uint16_t type, uint16_t pid, const char* data, uint16_t len);
|
||||
void IncomingEVC(uint16_t type, uint16_t pid, const char* data, uint16_t len);
|
||||
void IncomingBCM(uint16_t type, uint16_t pid, const char* data, uint16_t len);
|
||||
|
|
Loading…
Reference in New Issue