# HG changeset patch # User Christian Taedcke # Date 1337667292 -7200 # Node ID aebbcdd345907ad9362de308274a64c1a71ff2f6 # Parent b52c951dec6303e76d57c13232582a54f2b360ee Win32 win32test: - added optional parameter busname to command line diff -r b52c951dec63 -r aebbcdd34590 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 [can driver dll filename [baud rate]]\n"); + printf("USAGE: win32test [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)) {