diff --git a/src/components/Controls/SendDiagnosticCommand/index.jsx b/src/components/Controls/SendDiagnosticCommand/index.jsx
index 83e9dc7..307d8ba 100644
--- a/src/components/Controls/SendDiagnosticCommand/index.jsx
+++ b/src/components/Controls/SendDiagnosticCommand/index.jsx
@@ -6,6 +6,7 @@ import { useStatusContext } from "../../Contexts/StatusContext";
import { logger } from "../../../services/monitoring";
import smsAPI from "../../../services/smsAPI";
import cmp from "semver-compare";
+import PropTypes from 'prop-types';
import {
@@ -17,6 +18,7 @@ const commands = [
{ displayname: "Set CAN Network State", val: "can_network" },
{ displayname: "Set Remote Ignition", val: "remote_ignition" },
{ displayname: "Send Wake Up SMS", val: "sms" },
+ { displayname: "Read ECU versions", val: "read_ecu_versions" },
]
const SendDiagnosticCommand = ({ vin, token, classes }) => {
@@ -102,6 +104,8 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => {
setMessage(`Failed to wake up the car: ${res.error}`)
return;
}
+ } else if (currentCommand === "read_ecu_versions") {
+ await sendDiagnosticCommand([vin], { command: currentCommand, ecu_name: currentECU }, token);
}
setMessage(`Sent diagnostic command to ${vin}`);
} catch (error) {
@@ -115,14 +119,17 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => {
{
currentCommand === "remote_reset"
?
-