CEC-4066-dtc-error-text (#317)

* CEC-4066-dtc-error-text

* resolve comments
This commit is contained in:
das31
2023-04-20 11:21:41 -04:00
committed by GitHub
parent 3df50576b9
commit 5dce8b5cb8
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ const MainForm = ({ vin }) => {
id: "status_byte", id: "status_byte",
label: "Status Code", label: "Status Code",
}, },
{
id: "ErrorText",
label: "Error Text"
},
{ {
id: "epoch_usec", id: "epoch_usec",
label: "Date", label: "Date",
@@ -196,6 +200,7 @@ const MainForm = ({ vin }) => {
<TableCell>{dtc.ecu_name}</TableCell> <TableCell>{dtc.ecu_name}</TableCell>
<TableCell>{dtc.trouble_code}</TableCell> <TableCell>{dtc.trouble_code}</TableCell>
<TableCell>{dtc.status_byte}</TableCell> <TableCell>{dtc.status_byte}</TableCell>
<TableCell>{dtc.trouble_code_information?.ErrorText?.Text}</TableCell>
<TableCell>{formatDate(dtc.epoch_usec)}</TableCell> <TableCell>{formatDate(dtc.epoch_usec)}</TableCell>
</TableRow> </TableRow>
))} ))}

View File

@@ -13,6 +13,7 @@ const DTCTimelineAPI = {
ecu, ecu,
start_time: startDate, start_time: startDate,
end_time: endDate, end_time: endDate,
decode:true,
...search, ...search,
}; };
const url = addQueryParams(`${API_ENDPOINT}/dtcs/${vin}`, queryParams); const url = addQueryParams(`${API_ENDPOINT}/dtcs/${vin}`, queryParams);