]> git.sur5r.net Git - openocd/blobdiff - src/jtag/at91rm9200.c
command_handler: change to 'argc' to CMD_ARGC
[openocd] / src / jtag / at91rm9200.c
index dc9797e09475306324e53499e55fa3bd39bb3165..90d94c958b14245d4fb7a2510fdd8e6b07d387f0 100644 (file)
@@ -187,7 +187,7 @@ static int at91rm9200_speed(int speed)
 
 static int at91rm9200_handle_device_command(struct command_context *cmd_ctx, char *cmd, char **args, int argc)
 {
-       if (argc == 0)
+       if (CMD_ARGC == 0)
                return ERROR_OK;
 
        /* only if the device name wasn't overwritten by cmdline */