diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-10-23 02:17:17 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-05 18:19:18 -0800 |
commit | 0004691e9104c9a59336fbe6e230597d48e8cb57 (patch) | |
tree | e279104c3f62ff99df0cf3ab014d34ce41ceef1e /src/flash | |
parent | 7f6ad49d12e3d166c730d27306d887bb3ed48a1b (diff) | |
download | openocd+libswd-0004691e9104c9a59336fbe6e230597d48e8cb57.tar.gz openocd+libswd-0004691e9104c9a59336fbe6e230597d48e8cb57.tar.bz2 openocd+libswd-0004691e9104c9a59336fbe6e230597d48e8cb57.tar.xz openocd+libswd-0004691e9104c9a59336fbe6e230597d48e8cb57.zip |
Improve lpc288x.c command argument parsing.
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/lpc288x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c index 513e2fcf..61aa3a00 100644 --- a/src/flash/lpc288x.c +++ b/src/flash/lpc288x.c @@ -209,7 +209,7 @@ static int lpc288x_flash_bank_command(struct command_context_s *cmd_ctx, char *c /* part wasn't probed for info yet */ lpc288x_info->cidr = 0; - lpc288x_info->cclk = strtoul(args[6], NULL, 0); + COMMAND_PARSE_NUMBER(u32, args[6], lpc288x_info->cclk); return ERROR_OK; } |