CEC-5185 add 'write_secoc' diagnostic command. (#492)
This commit is contained in:
@@ -18,6 +18,7 @@ const commands = [
|
|||||||
{ displayname: "Set CAN Network State", val: "can_network" },
|
{ displayname: "Set CAN Network State", val: "can_network" },
|
||||||
{ displayname: "Set Remote Ignition", val: "remote_ignition" },
|
{ displayname: "Set Remote Ignition", val: "remote_ignition" },
|
||||||
{ displayname: "Send Wake Up SMS", val: "sms" },
|
{ displayname: "Send Wake Up SMS", val: "sms" },
|
||||||
|
{ displayname: "Update SecOC keys", val: "write_secoc_key" },
|
||||||
{ displayname: "Read ECU versions", val: "read_ecu_versions" },
|
{ displayname: "Read ECU versions", val: "read_ecu_versions" },
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -106,6 +107,8 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => {
|
|||||||
}
|
}
|
||||||
} else if (currentCommand === "read_ecu_versions") {
|
} else if (currentCommand === "read_ecu_versions") {
|
||||||
await sendDiagnosticCommand([vin], { command: currentCommand, ecu_name: currentECU }, token);
|
await sendDiagnosticCommand([vin], { command: currentCommand, ecu_name: currentECU }, token);
|
||||||
|
} else if (currentCommand === "write_secoc_key") {
|
||||||
|
await sendDiagnosticCommand([vin], { command: currentCommand }, token);
|
||||||
}
|
}
|
||||||
setMessage(`Sent diagnostic command to ${vin}`);
|
setMessage(`Sent diagnostic command to ${vin}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user