diff options
Diffstat (limited to 'avr/debug.c')
-rw-r--r-- | avr/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avr/debug.c b/avr/debug.c index 384a5ad..e38ccb2 100644 --- a/avr/debug.c +++ b/avr/debug.c @@ -189,7 +189,7 @@ mod_mem_avr(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char * const arg addr++; } } - } while (nbytes); + } while (nbytes > 0); mm_last_addr = addr; return CMD_RET_SUCCESS; |