Win32 win32test:
authorChristian Taedcke <hacking@taedcke.com>
Tue, 22 May 2012 08:14:52 +0200
changeset 727 aebbcdd34590
parent 726 b52c951dec63
child 728 92b7c9f85aad
Win32 win32test:
- added optional parameter busname to command line
examples/win32test/main.c
--- a/examples/win32test/main.c	Tue May 22 08:10:09 2012 +0200
+++ b/examples/win32test/main.c	Tue May 22 08:14:52 2012 +0200
@@ -107,7 +107,7 @@
    /* process command line arguments */
    if (argc < 2)
       {
-      printf("USAGE: win32test <node_id> [can driver dll filename [baud rate]]\n");
+      printf("USAGE: win32test <node_id> [can driver dll filename [baud rate[bus name]]]\n");
       return 1;
       }
 
@@ -126,6 +126,9 @@
    if (argc > 3)
       MasterBoard.baudrate = argv[3];
 
+   if (argc > 4)
+	  MasterBoard.busname = argv[4];
+
    // load can driver
    if (!LoadCanDriver(dll_file_name))
       {