Skip to content

Commit 88f307a

Browse files
committed
add git_vin command to main() so openxc-python can understand the new command.
1 parent 6a1456d commit 88f307a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openxc/tools/control.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def parse_options():
9696
parser = argparse.ArgumentParser(description="Send control messages to an "
9797
"attached OpenXC vehicle interface", parents=[device_options()])
9898
parser.add_argument("command", type=str,
99-
choices=['version', 'platform', 'write', 'id', 'set', 'sd_mount_status'])
99+
choices=['version', 'platform', 'write', 'id', 'set', 'sd_mount_status', 'get_vin'])
100100
write_group = parser.add_mutually_exclusive_group()
101101
write_group.add_argument("--name", action="store", dest="write_name",
102102
help="name for message write request")
@@ -187,6 +187,8 @@ def main():
187187
sd_mount_status(interface)
188188
elif arguments.command == "id":
189189
device_id(interface)
190+
elif arguments.command == "get_vin":
191+
get_vin(interface)
190192
elif arguments.command == "set":
191193
handle_set_command(arguments, interface)
192194
elif arguments.command == "write":

0 commit comments

Comments
 (0)