projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6ad49
)
Improve lpc288x.c command argument parsing.
author
Zachary T Welch
<zw@superlucidity.net>
Fri, 23 Oct 2009 09:17:17 +0000
(
02:17
-0700)
committer
Zachary T Welch
<zw@superlucidity.net>
Fri, 6 Nov 2009 02:19:18 +0000
(18:19 -0800)
src/flash/lpc288x.c
patch
|
blob
|
history
diff --git
a/src/flash/lpc288x.c
b/src/flash/lpc288x.c
index 513e2fcf353b039e9a6dd5018ec2b461f327029d..61aa3a008edfe643b6f017a3b8b593108a8afd47 100644
(file)
--- 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;
}