CEC-5618: add state and timeout toggles (#495)

This commit is contained in:
Tristan Timblin
2024-01-18 13:25:41 -08:00
committed by GitHub
parent 5d9b6f0537
commit ea5d9db790
2 changed files with 98 additions and 18 deletions

View File

@@ -13,13 +13,13 @@ import {
useVehicleContext
} from "../../Contexts/VehicleContext";
export const DIAGNOSTIC_COMMANDS = [
const DIAGNOSTIC_COMMANDS = [
{ displayname: "Reset", val: "remote_reset" },
{ displayname: "Set CAN Network State", val: "can_network" },
{ displayname: "Set Remote Ignition", val: "remote_ignition" },
{ displayname: "Send Wake Up SMS", val: "sms" },
// { displayname: "Update SecOC keys", val: "write_secoc_key" },
{ displayname: "Read ECU versions", val: "read_ecu_versions", allowAll: true },
{ displayname: "Read ECU versions", val: "read_ecu_versions" },
]
const SendDiagnosticCommand = ({ vin, token, classes }) => {
@@ -195,6 +195,7 @@ export const AllECUsCommand = ({ classes, ecus, currentECU, setCurrentECU }) =>
className={classes.formControl}
variant="outlined"
size="small"
margin="normal"
>
<InputLabel className={classes.whiteBackground}>
ECU