aboutsummaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-08-11 23:36:39 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-08-11 23:36:39 -0400
commit1430a2a202e37be476b7290c2018a1c0d64833d8 (patch)
treedc16f9ce7b36b022ddb8091dffa40a9bdd154b55 /openxc.proto
parentfcb217ef4140319ee8557f849bbaf01ecfe92e6f (diff)
Move action field to ControlCommand in binary format.
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/openxc.proto b/openxc.proto
index 071f2f25..937fe186 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -23,9 +23,11 @@ message RawMessage {
message ControlCommand {
enum Type { VERSION = 1; DEVICE_ID = 2; DIAGNOSTIC = 3; }
+ enum Action { ADD = 1; CANCEL = 2; }
optional Type type = 1;
optional DiagnosticRequest diagnostic_request = 2;
+ optional Action action = 3;
}
message CommandResponse {
@@ -36,7 +38,6 @@ message CommandResponse {
message DiagnosticRequest {
enum DecodedType { NONE = 1; OBD2 = 2; }
- enum Action { ADD = 1; CANCEL = 3; }
optional int32 bus = 1;
optional uint32 message_id = 2;
@@ -49,7 +50,6 @@ message DiagnosticRequest {
optional double frequency = 7;
optional string name = 8;
optional DecodedType decoded_type = 9;
- optional Action action = 10;
}
message DiagnosticResponse {