Try menu structure for future command
This commit is contained in:
parent
34ad8c41b8
commit
c1a2b4dbf8
|
@ -43,9 +43,9 @@
|
|||
void OvmsVehicleRenaultZoePh2CAN::CanInit()
|
||||
{
|
||||
OvmsCommand* cmd;
|
||||
OvmsCommand* obd;
|
||||
obd = cmd_zoe_ph2->RegisterCommand("can", "CAN tools");
|
||||
cmd = obd->RegisterCommand("request", "Send ISO-TP request, output response");
|
||||
OvmsCommand* ph2;
|
||||
ph2 = cmd_zoe_ph2->RegisterCommand("ph2", "Zoe Ph2 CAN tools");
|
||||
cmd = ph2->RegisterCommand("request", "Send ISO-TP request, output response");
|
||||
cmd->RegisterCommand("device", "Send ISO-TP request to a ECU", shell_can_request, "<txid> <rxid> <request>", 3, 3);
|
||||
cmd->RegisterCommand("broadcast", "Send ISO-TP request as broadcast", shell_can_request, "<request>", 1, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue