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