VIN full response
This commit is contained in:
parent
b30cd3498f
commit
88130b05bc
|
@ -215,17 +215,18 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x4060: { //Vehicle identificaftion number
|
case 0x4060: { //Vehicle identificaftion number
|
||||||
for(int i=0; i<10; i++) {
|
|
||||||
//Debug full response
|
//Debug full response
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
size_t rlen = len, offset = 0;
|
size_t rlen = len, offset = 0;
|
||||||
do {
|
do {
|
||||||
rlen = FormatHexDump(&buf, data + offset, rlen, 16);
|
rlen = FormatHexDump(&buf, data + offset, rlen, 16);
|
||||||
offset += 16;
|
offset += 16;
|
||||||
ESP_LOGW(TAG, "OBD2: unhandled reply from BCM [%02x %02x]: %s", type, pid, buf ? buf : "-");
|
ESP_LOGW(TAG, "4060 Vehicle identificaftion number debug [%02x %02x]: %s", type, pid, buf ? buf : "-");
|
||||||
} while (rlen);
|
} while (rlen);
|
||||||
if (buf)
|
if (buf)
|
||||||
free(buf);
|
free(buf);
|
||||||
|
|
||||||
|
for(int i=0; i<10; i++) {
|
||||||
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %s", ((char*)CAN_NIB(i)));
|
ESP_LOGD(TAG, "4060 Vehicle identificaftion number: %s", ((char*)CAN_NIB(i)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue