summaryrefslogtreecommitdiff
path: root/avr/command.c
diff options
context:
space:
mode:
authorLeo C2015-04-22 21:59:58 +0200
committerLeo C2015-04-22 21:59:58 +0200
commit5480dc651411edc6fdeca04ce38749a6d04245a5 (patch)
tree1cb714f4422424b20b83537e3ffbcdfb07578745 /avr/command.c
parentae017d4ce71be2ca45891ff6709f74f4fc963644 (diff)
downloadz180-stamp-5480dc651411edc6fdeca04ce38749a6d04245a5.zip
New memory test commands, loadi updates. Needs testing
- rename loop to mloop - + mloopw - + mtest - + mdc - + mwc
Diffstat (limited to 'avr/command.c')
-rw-r--r--avr/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avr/command.c b/avr/command.c
index b6fa418..46e3a8a 100644
--- a/avr/command.c
+++ b/avr/command.c
@@ -149,8 +149,8 @@ cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len)
for (cmdtp = table;
cmdtp != table + table_len;
cmdtp++) {
- if (strncmp_P (cmd, cmdtp->name, len) == 0) {
- if (len == strlen (cmdtp->name))
+ if (strncmp_P(cmd, cmdtp->name, len) == 0) {
+ if (len == strlen_P(cmdtp->name))
return cmdtp; /* full match */
cmdtp_temp = cmdtp; /* abbreviated command ? */